Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
die when trying to import a tag that is not exported
  • Loading branch information
moritz committed May 8, 2012
1 parent e51b93b commit b6fe916
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Grammar.pm
Expand Up @@ -796,6 +796,10 @@ grammar Perl6::Grammar is HLL::Grammar {
if pir::exists($EXPORT, $tag) {
$*W.import($EXPORT{$tag}, $package_source_name);
}
else {
nqp::die("Error while importing from '$package_source_name': no such tag '$tag'");

}
}
else {
nqp::die('Can only import named tags for now');
Expand Down

0 comments on commit b6fe916

Please sign in to comment.