[dancer-users] about send_error message

Yonghua Peng sysops at mail2000.us
Thu May 22 15:05:02 BST 2014


 Hello,

For send_error function, for example, 

get '/' => sub {
  # template 'index';
  send_error("Not authorized", 401);
};

When running with bin/app.pl directly, the message "Not authorized" can be displayed in the web.
But if I run it with starman:

plackup -E deployment -s Starman --workers=10 -l 0.0.0.0:3000 -D --access-log=logs/access.log -a bin/app.pl

This error message seems lost.
Do you know how to fix up it?
b/c I wrote the API with dancer, I need to tell the clients what are the errors.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20140522/4975a273/attachment.html>


More information about the dancer-users mailing list