Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Preserve warning message "0"
  • Loading branch information
moritz committed Dec 7, 2014
1 parent 8a9791d commit dfcf9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Exception.pm
Expand Up @@ -209,7 +209,7 @@ do {
if ($type == nqp::const::CONTROL_WARN) {
my Mu $err := nqp::getstderr();
my $msg = nqp::p6box_s(nqp::getmessage($ex));
nqp::printfh($err, $msg ?? "$msg" !! "Warning");
nqp::printfh($err, $msg.chars ?? "$msg" !! "Warning");
#?if parrot
nqp::printfh($err, Backtrace.new($ex.backtrace, 0).nice(:oneline));
#?endif
Expand Down

0 comments on commit dfcf9fc

Please sign in to comment.