Created
February 11, 2010 12:10
-
-
Save zby/301461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Plack::Request; | |
sub { | |
my $env = shift; | |
# eval { die 'aaaaaaaaaaaaaaaaaaaa'; }; | |
return [ | |
'500', | |
[ 'Content-Type' => 'text/plain' ], | |
[ "Error" ], | |
]; | |
} | |
# uncommenting the eval line should be a noop in my understanding | |
# but it triggers a stack strace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment