Skip to content

Commit

Permalink
slightly more friendly example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 25, 2016
1 parent 0ee00d5 commit 2ac8721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Exception.pm
Expand Up @@ -110,7 +110,7 @@ Mojo::Exception - Exceptions with context
# Throw exception and show stack trace
eval { Mojo::Exception->throw('Died at test.pl line 3.') };
say $_->[1], ':', $_->[2] for @{$@->frames};
say "$_->[1]: $_->[2]" for @{$@->frames};
# Customize exception
eval { die Mojo::Exception->new('Died at test.pl line 3.')->trace(2) };
Expand Down

0 comments on commit 2ac8721

Please sign in to comment.