Skip to content

Commit

Permalink
clearer error if missing --file arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dormando committed Mar 30, 2012
1 parent 3cfbc54 commit c688696
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mogupload
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ my $c = $util->getopts($usage, qw/class=s key=s file=s/);
my $mogc = $util->client;

my $filename = $c->{file};
die "Must specify a file to upload with --file" unless $filename;

my $fh;
my $size = 0;
Expand Down

0 comments on commit c688696

Please sign in to comment.