Skip to content

Commit 3dc7c13

Browse files
committed
Handle errors
1 parent a9089a7 commit 3dc7c13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spectool

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ for my $spec (@specs) {
297297
my $cf = Build::read_config_dist($dist, $archs[0], $configdir);
298298
my $parsed = Build::parse($cf, $spec);
299299

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

304304
for my $tag (@opt_showtag) {

0 commit comments

Comments
 (0)