Skip to content

Commit

Permalink
use eval to catch errors and exit with a non-zero code
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicann committed May 30, 2024
1 parent 34521c2 commit e17a4c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rdapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ use lib qw(./lib);
use App::rdapper;
use strict;

App::rdapper->main(@ARGV);
eval {
App::rdapper->main(@ARGV);
exit(0);
};

exit(1);

0 comments on commit e17a4c7

Please sign in to comment.