Permalink
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...
1 parent 688c404 commit 049f617a6c773c896a408c5d40d650979d1bf58f @tsibley tsibley committed Feb 21, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 049f617

Please sign in to comment.