Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm converting an old CGI-based program to Plack and the StackTrace stuff is really cool, but it's not showing the first location... only the second.
In other words, I see this:
egad! at MyApp.pm line 267. at /home/user/perl5/Plack/Middleware/HTTPExceptions.pm line 59 1. in Plack::Middleware::HTTPExceptions::transform_error at /home/user +/perl5/Plack/Middleware/HTTPExceptions.pm line 59
The error is triggered at MyApp line 267, but it's just printed out as normal text. The next frame, transform_error() has all the HTML formatting and the "show lexical variables" option, etc.
How can I get it to do the same treatment for the MyApp call though? I do have an eval {} and am catching and rethrowing the error. I tried removing that though and it didn't seem to make a difference.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Plack::Middleware::StackTrace missing frame
by Anonymous Monk on Apr 30, 2015 at 02:20 UTC | |
by Anonymous Monk on Apr 30, 2015 at 02:31 UTC | |
|
Re: Plack::Middleware::StackTrace missing frame
by Anonymous Monk on Apr 30, 2015 at 01:48 UTC | |
by Anonymous Monk on Apr 30, 2015 at 01:54 UTC | |
by Anonymous Monk on Apr 30, 2015 at 02:01 UTC | |
by Anonymous Monk on Apr 30, 2015 at 02:23 UTC |