Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only complain about non-empty specs
  • Loading branch information
lizmat committed May 4, 2015
1 parent 4ad94f3 commit 5708c60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/CompUnitRepo.pm
Expand Up @@ -141,6 +141,9 @@ sub PARSE-INCLUDE-SPECS(Str:D $specs) {
my @found;
my $default-short-id = 'file';

RAKUDO_MODULE_DEBUG("Parsing specs: $specs")
if $?RAKUDO_MODULE_DEBUG;

# for all possible specs
for $specs.split(/ \s* ',' \s* /) -> $spec {
if PARSE-INCLUDE-SPEC($spec, $default-short-id) -> $triplet {
Expand All @@ -150,7 +153,7 @@ sub PARSE-INCLUDE-SPECS(Str:D $specs) {
$triplet[2];
$default-short-id = $triplet[0];
}
else {
elsif $spec {
die "Don't know how to handle $spec";
}
}
Expand Down

0 comments on commit 5708c60

Please sign in to comment.