Skip to content

Latest commit

 

History

History
executable file
·
48 lines (30 loc) · 1.04 KB

File metadata and controls

executable file
·
48 lines (30 loc) · 1.04 KB

NAME

Plack::Middleware::StackTrace::ParseMessage - Extended StackTrace

SYNOPSIS

enable "StackTrace::ParseMessage";

DESCRIPTION

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>

METHODS

call

SEE ALSO

Plack::Middleware::StackTrace

AUTHOR

Sugama Keita, <[email protected]>

COPYRIGHT AND LICENSE

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.