Skip to content

Instantly share code, notes, and snippets.

@simonwistow
Created June 1, 2012 23:44
Show Gist options
  • Save simonwistow/2855822 to your computer and use it in GitHub Desktop.
Save simonwistow/2855822 to your computer and use it in GitHub Desktop.
% cat error.pl
use strict;
use Dancer;
get '/' => sub {
send_error('foo');
};
dance;
% plackup error.pl
HTTP::Server::PSGI: Accepting connections at http://0:5000/
% curl http://localhost:5000/
An internal error occured
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment