Browse files

added Plack::Util::wrap_error so servers can use to catch errors

  • Loading branch information...
1 parent d9f9183 commit 582af8dcd476b16f9049c3533034b15fa5e53d0f @miyagawa committed Sep 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Perlbal/Plugin/PSGI.pm
View
2 lib/Perlbal/Plugin/PSGI.pm
@@ -60,7 +60,7 @@ sub handle_request {
);
};
- my $res = $app->($env, $start_response);
+ my $res = Plack::Util::wrap_error { $app->($env, $start_response) } $env;
return 1 if @$res == 0;
$start_response->($res);

0 comments on commit 582af8d

Please sign in to comment.