Hi all, 

I just raised this bug, and made a patch for it.  Details are at 
https://github.com/PerlDancer/Dancer/issues/877 - but in short, Dancer::Error 
passes the Dancer::Exception::* object through to the serializer, which then 
explodes because (certainly for JSON/XML) it is not configured to support 
serialising objects (and probably shouldn't be!).

The patch removes sending this exception through.  In the case of JSON/XML, 
this never worked, but for non-object exceptions (i.e. die "some string"), it 
changes the response from having identical 'error' and 'exception' keys to 
having only an 'error' key.

I'd appreciate any feedback on the (2 line!) patch - this is my first time 
contributing to Dancer so I may not be following procedure properly :-).

Cheers - and have a great Christmas everyone! 

-- 
Rik Brown
http://www.rikbrown.co.uk

_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to