Subject: | [PATCH] Ignore internal Catalyst control-flow exceptions |
Date: | Fri, 29 Sep 2017 09:39:40 -0700 |
To: | bug-Catalyst-Plugin-StackTrace [...] rt.cpan.org |
From: | Thomas Sibley <tsibley [...] cpan.org> |
Internally, Catalyst uses exception objects to implement $c->detach (and
$c->go). Unless these are ignored, they obscure the real stacktrace of
errors that happen after a $c->detach.
For example, when detaching to a view component which throws an error
(due to template syntax, say), the StackTrace plugin catches both errors
but overwrites the first exception's stacktrace (the one we care about)
with the control-flow exception's stacktrace (which is empty unless
verbose = 2 because it's all internal to Catalyst).