[dancer-users] Useless error message

David Precious davidp at preshweb.co.uk
Mon Jun 3 21:52:36 BST 2013


On Mon, 03 Jun 2013 22:08:18 +0200
Niels Larsen <niels at genomics.dk> wrote:

> Shouldn't Dancer's error traceback include the user code? 

Yes.

I just scaffolded a fresh app, added a call to Foo->foo(), and in
lib/Foo.pm, added a die() call.

Hitting the app, I get the Dancer error page, with the error message
right at the top:

Helpful error message
at /home/davidp/tmp/dancertests/errorreporting/lib/Foo.pm line 4,
<DATA> line 16.

Oddly though, the stack presented includes bin/app.pl and Dancer's guts
only, not lib/errorreporting.pm (the app code) or lib/Foo.pm (the
"module") that died).

I'll look into that when I have a moment.


-- 
David Precious ("bigpresh") <davidp at preshweb.co.uk>
http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan        www.preshweb.co.uk/github




More information about the dancer-users mailing list