Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better display of multi-line exceptions when we break on throw.
  • Loading branch information
jnthn committed Aug 22, 2012
1 parent ca70077 commit f65b95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Debugger/UI/CommandLine.pm
Expand Up @@ -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]]),
Expand Down

0 comments on commit f65b95d

Please sign in to comment.