Skip to content

Commit

Permalink
Add the Stash's name to the Failure when trying...
Browse files Browse the repository at this point in the history
to look up a non-existent symbol in the Stash.
  • Loading branch information
MasterDuke17 committed Feb 8, 2020
1 parent 99b67a4 commit ca1e51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Stash.pm6
Expand Up @@ -22,7 +22,7 @@ my class Stash { # declared in BOOTSTRAP
nqp::if(
nqp::existskey(GLOBAL.WHO,$key),
nqp::atkey(GLOBAL.WHO,$key),
Failure.new("Could not find symbol '$key'")
Failure.new("Could not find symbol '$key' in '{self}'")
),
nqp::p6scalarfromdesc(
ContainerDescriptor::BindHashPos.new(Mu, self, $key)
Expand Down

0 comments on commit ca1e51c

Please sign in to comment.