PerlDancer/Dancer2 — pull request #532 by shumphrey (2014-03-12 16:10:45+00:00)
Title: runtime errors, such as those produced by die, should be serialized

send_error currently specifies the serializer to use, however, other
errors still produce an html page. The serializer can be obtained from
the context/app so all errors are rendered correctly.