Skip to content

Commit

Permalink
Use nqp::getmessage instead of nqp::getpayload
Browse files Browse the repository at this point in the history
In many cases the error message is silently swalloed otherwise.
  • Loading branch information
vrurg committed Dec 21, 2019
1 parent db65798 commit 65847f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Metamodel/ParametricRoleHOW.nqp
Expand Up @@ -168,10 +168,10 @@ class Perl6::Metamodel::ParametricRoleHOW
}
if $error {
nqp::die("Could not instantiate role '" ~ self.name($obj)
~ "':\n" ~ nqp::getpayload($error))
~ "':\n" ~ nqp::getmessage($error))
}

# Use it to build concrete role.
# Use it to build a concrete role.
$conc := self.specialize_with($obj, $conc, $type_env, @pos_args);
nqp::if(
nqp::can($class.HOW, 'add_conc_to_cache'),
Expand Down

0 comments on commit 65847f7

Please sign in to comment.