Skip to content

Commit

Permalink
error and backtrace should go to standard error by default
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 13, 2011
1 parent bdab779 commit e913287
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/HLL/Compiler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ class HLL::Compiler {
}
if ($has_error) {
if %adverbs<ll-exception> || !pir::can(self, 'handle-exception') {
nqp::say($error);
nqp::say(pir::join("\n", $error.backtrace_strings));
my $err := pir::getstderr__P();
$err.print($error);
$err.print("\n");
$err.print(pir::join("\n", $error.backtrace_strings));
pir::exit(1);
} else {
self.handle-exception($error);
Expand Down

0 comments on commit e913287

Please sign in to comment.