Skip to content

Commit

Permalink
Die when dbfile is not provided to recs-join
Browse files Browse the repository at this point in the history
$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
tsibley committed Feb 21, 2014
1 parent 688c404 commit 049f617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/App/RecordStream/Operation/join.pm
Expand Up @@ -42,9 +42,9 @@ sub init {


my $dbkey = shift @$args; 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->{'ACCUMULATE_RIGHT'} = $accumulate_right;
$this->{'DB_KEY'} = $dbkey; $this->{'DB_KEY'} = $dbkey;
Expand Down

0 comments on commit 049f617

Please sign in to comment.