Skip to content
Browse files

Better display of multi-line exceptions when we break on throw.

  • Loading branch information...
1 parent ca70077 commit f65b95de1094778204d321aa24943823656a323d @jnthn committed Aug 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Debugger/UI/CommandLine.pm
View
2 lib/Debugger/UI/CommandLine.pm
@@ -154,7 +154,7 @@ my class SourceFile {
$ctx_end = +@!lines - 1 if $ctx_end >= @!lines;
return join "\n",
colored("+ Exception Thrown", 'yellow'),
- colored('| ', 'yellow') ~ $e.message,
+ normal_lines(lines($e.message), 'yellow'),
colored("+ $!filename ($ctx_start.succ() - $ctx_end.succ())", 'yellow'),
normal_lines(@!lines[$ctx_start..^$line], 'yellow'),
throw_lines([@!lines[$line]]),

0 comments on commit f65b95d

Please sign in to comment.
Something went wrong with that request. Please try again.