Skip to content

Commit

Permalink
use shift consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 29, 2016
1 parent 5a96e64 commit cc2a0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.51 2016-02-28
6.51 2016-02-29
- Fixed bug in Mojolicious::Plugin::EPLRenderer where empty templates from the
DATA section would be ignored.
- Fixed a few "0" value bugs in Mojolicious::Renderer.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -186,7 +186,7 @@ sub startup { }
sub _exception {
my ($next, $c) = @_;
local $SIG{__DIE__}
= sub { ref $_[0] ? CORE::die $_[0] : Mojo::Exception->throw(@_) };
= sub { ref $_[0] ? CORE::die $_[0] : Mojo::Exception->throw(shift) };
$c->helpers->reply->exception($@) unless eval { $next->(); 1 };
}

Expand Down

0 comments on commit cc2a0d0

Please sign in to comment.