Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Print a newline after the message when using 'warn'
Streamline the behaviour so now it's consistent across die, note and
warn.
  • Loading branch information
LemonBoy committed Sep 1, 2016
1 parent f0e6ae7 commit 631e2f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Exception.pm
Expand Up @@ -364,6 +364,7 @@ do {
(my Mu $err := nqp::getstderr),
(my str $msg = nqp::getmessage($ex)),
nqp::printfh($err,nqp::if(nqp::chars($msg),$msg,"Warning")),
nqp::printfh($err, "\n"),
nqp::printfh($err, $backtrace.first-none-setting-line),
nqp::resume($ex)
)
Expand Down

0 comments on commit 631e2f7

Please sign in to comment.