Skip to content

Commit

Permalink
Handle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Oct 6, 2020
1 parent a9089a7 commit 3dc7c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectool
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ for my $spec (@specs) {
my $cf = Build::read_config_dist($dist, $archs[0], $configdir);
my $parsed = Build::parse($cf, $spec);

if (!defined $parsed) {
die "can't parse $spec\n";
if (!defined $parsed || $parsed->{'error'}) {
die "can't parse $spec: ".($parsed->{'error'}||'unknown error')."\n";
}

for my $tag (@opt_showtag) {
Expand Down

0 comments on commit 3dc7c13

Please sign in to comment.