Plack::Middleware::StackTrace::ParseMessage - Extended StackTrace
enable "StackTrace::ParseMessage";
This is an extended class of Plack::Middleware::StackTrace for replacement. This retrieves file name and line number out of error messages and appends a stack entry for it.
This module is aimed at template engines who reports errors in template perspective so that the debug screen indicates where the error occurred inside template as follows.
function some_func not defined at /path/to/file/index.html line 13
10: <body>
11: <div>
12: <ul>
13: <% some_func() %> <-- highlighted
14: </ul>
15: </div>
16: </body>
Sugama Keita, <[email protected]>
Copyright (C) 2011 by Sugama Keita.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.