Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Die when dbfile is not provided to recs-join

$this->usage(...) just returns a string; it doesn't print or die.  The
die() will be caught by the top-level operation handler and exit
appropriately with our usage.
  • Loading branch information...
commit 049f617a6c773c896a408c5d40d650979d1bf58f 1 parent 688c404
@tsibley tsibley authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/App/RecordStream/Operation/join.pm
View
4 lib/App/RecordStream/Operation/join.pm
@@ -42,9 +42,9 @@ sub init {
my $dbkey = shift @$args;
- $this->usage("You must provide dbfile") unless (@$args);
- my $dbfile = shift @$args;
+ my $dbfile = shift @$args
+ or die "You must provide dbfile\n";
$this->{'ACCUMULATE_RIGHT'} = $accumulate_right;
$this->{'DB_KEY'} = $dbkey;
Please sign in to comment.
Something went wrong with that request. Please try again.