Skip to content

Commit

Permalink
default to rethrowing under development env
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Jun 15, 2011
1 parent 990fa45 commit 5db3bd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Plack/Middleware/HTTPExceptions.pm
Expand Up @@ -8,6 +8,11 @@ use Try::Tiny;
use Scalar::Util 'blessed';
use HTTP::Status ();

sub prepare_app {
my $self = shift;
$self->rethrow(1) if ($ENV{PLACK_ENV} || '') eq 'development';
}

sub call {
my($self, $env) = @_;

Expand Down

0 comments on commit 5db3bd7

Please sign in to comment.