On 11 June 2010 18:41, Karen Etheridge <p...@froods.org> wrote: > Moose errors are verbose, but like any stack trace, usually the most > relevant bits are right at the beginning. You could always add a custom > __DIE__ handler to catch these and truncate them, and divert the unmodified > version to a different log file.
No need for a __DIE__ handler, see Moose::Error::Croak. Though as often as this comes up, I kinda wish it was the default. You can always perl -MCarp=verbose to force a full stack trace out of croak, but you can't do -MCarp=concise to make confess keep it's mouth shut.