Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only show location if we have it.
Just hardening for the case we don't for some reason.
  • Loading branch information
jnthn committed Dec 3, 2012
1 parent cff96f1 commit 8dbb9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Exception.pm
Expand Up @@ -317,7 +317,7 @@ my role X::Comp is Exception {
!! ("", "", "", "");
my $eject = $*OS eq 'MSWin32' ?? "<HERE>" !! "\x[23CF]";
my $r = "$red==={$clear}SORRY!$red===$clear\n$.message\nat $.filename():$.line\n------> ";
$r ~= "$red$.pre$yellow$eject$green$.post$clear";
$r ~= "$red$.pre$yellow$eject$green$.post$clear" if defined $.pre;
for @.modules.reverse[1..*] {
$r ~= $_<module>.defined
?? "\n from module $_<module> ($_<filename>:$_<line>)"
Expand Down

0 comments on commit 8dbb9a8

Please sign in to comment.