Thank you for your answer! Unfortunately, this is not the solution.
This is what I get when `show_errors = 1`: https://gist.github.com/bessarabov/9318850 (You see, there is the string `Error message at ` — I need this information). And this is what I get when `show_errors = 0`: https://gist.github.com/bessarabov/9318862 — in the test output there is no info that I need. Actually I did what I wanted by writing small sub that do what I need: https://github.com/bessarabov/DancerTestProblem/commit/593096f2e7b837a48f2286a328295683b75adb26#diff-d3fcc9498c76933fa92ea55e26ccb77dR8 But I'm not sure that it is the best possible solution. And thank you for the Dancer::Exceptions I haven't knew that such thing is integrated into Dancer, but this does not solve my problem =) On Sun, Mar 2, 2014 at 11:46 PM, WK <[email protected]> wrote: > Здраствуй! > > 2014-03-02 20:05 GMT+02:00 Иван Бессарабов <[email protected]>: > >> >> Here is my problem. > > > If I understand your problem correctly, the main problem is in > configuration. > > By default testing uses development environment and there is set > "show_errrors = 1". That causes on die (or croak) to show full stack tree. > Setting "show_errrors = 0" should give you simple 500 page. > > Also, there is Dancer::Exceptions and this gives us special keyword "raise". > Maybe it is better to use it? I read about it here: > http://advent.perldancer.org/2011/6 > > Hope i got you right. > > -- > Best regards, > Всего хорошего, > Kõike hääd, > > Gunnar > > _______________________________________________ > dancer-users mailing list > [email protected] > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users > _______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
