Skip to content

Commit

Permalink
trace needs to be called manually
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 26, 2016
1 parent df394cd commit 3773959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Exception.pm
Expand Up @@ -96,7 +96,7 @@ Mojo::Exception - Exceptions with context
use Mojo::Exception;
# Throw exception and show stack trace
eval { die Mojo::Exception->new('Something went wrong!') };
eval { die Mojo::Exception->new('Something went wrong!')->trace };
say "$_->[1]:$_->[2]" for @{$@->frames};
# Customize exception
Expand Down

0 comments on commit 3773959

Please sign in to comment.