Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use nqp::getmessage rather than stringification.
  • Loading branch information
jnthn committed Feb 27, 2013
1 parent 49b84c9 commit 7775882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nqp-src/NQPHLL.pm
Expand Up @@ -1206,9 +1206,9 @@ class HLL::Compiler does HLL::Backend::Default {
if ($has_error) {
if %adverbs<ll-exception> || !nqp::can(self, 'handle-exception') {
my $err := nqp::getstderr();
nqp::printfh($err, $error);
nqp::printfh($err, nqp::getmessage($error));
nqp::printfh($err, "\n");
nqp::printfh($err, nqp::join("\n", $error.backtrace_strings));
# nqp::printfh($err, nqp::join("\n", $error.backtrace_strings));
nqp::exit(1);
} else {
self.handle-exception($error);
Expand Down

0 comments on commit 7775882

Please sign in to comment.