Skip to content
Browse files

Pass HTTP::Exceptions back up the chain

  • Loading branch information...
1 parent 94281c0 commit b0073ec46c228d14f71c6e93c56a80e65171a55b @ctfliblime ctfliblime committed Jun 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Squatting/On/PSGI.pm
View
1 lib/Squatting/On/PSGI.pm
@@ -60,6 +60,7 @@ sub psgi {
};
if ($@) {
+ die $@ if (ref($@) =~ /^HTTP::Exception/);
$res = [ 500, [ 'Content-Type' => 'text/plain' ], ["<pre>$@</pre>"] ];
}

0 comments on commit b0073ec

Please sign in to comment.
Something went wrong with that request. Please try again.