Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make sure those errors have pos-in-file info
  • Loading branch information
timo committed Jun 15, 2013
1 parent cdda38e commit e9aa2a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Perl6/Actions.nqp
Expand Up @@ -165,14 +165,16 @@ class Perl6::Actions is HLL::Actions does STDActions {
}
}
} else {
nqp::die("Invalid hash shape; type expected");
$*W.throw($/, "X::Comp::AdHoc",
payload => "Invalid hash shape; type expected");
}
} elsif +@($shape_ast) > 1 {
$*W.throw($/, 'X::Comp::NYI',
feature => "multidimensional shaped hashes");
}
} else {
nqp::die("Invalid hash shape; type expected");
$*W.throw($/, "X::Comp::AdHoc",
payload => "Invalid hash shape; type expected");
}
}
if @value_type {
Expand Down

0 comments on commit e9aa2a9

Please sign in to comment.