Skip to content

Commit

Permalink
improved Mojolicious to not trap exceptions if the default exception …
Browse files Browse the repository at this point in the history
…handling has been deactivated
  • Loading branch information
kraih committed May 12, 2013
1 parent c70292e commit 6a56e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -36,6 +36,8 @@
managing more than 10k concurrent connections.
- Improved Mojolicious to be able to detect the current operating mode from
the PLACK_ENV environment variable.
- Improved Mojolicious to not trap exceptions if the default exception
handling has been deactivated.
- Improved renderer performance.
- Improved Mojo::DOM::HTML performance.
- Improved Mojo::Reactor::Poll performance.
Expand Down
6 changes: 1 addition & 5 deletions lib/Mojolicious.pm
Expand Up @@ -158,11 +158,7 @@ sub handler {
unless $self->{dispatch};

# Process with chain
unless (eval { $self->plugins->emit_chain(around_dispatch => $c) }) {
$self->log->fatal("Processing request failed: $@");
$tx->res->code(500);
$tx->resume;
}
$self->plugins->emit_chain(around_dispatch => $c);

# Delayed response
$self->log->debug('Nothing has been rendered, expecting delayed response.')
Expand Down

0 comments on commit 6a56e8c

Please sign in to comment.