Subject: | Using croak instead of confess for errors |
While using Config::JSON I am trapping and recovering from errors when
for example the json file fails to parse. In these cases the error is
logged but the program continues. The stack traces produced by confess
can result in very large log messages.
I would like to log just the error that occurred along with some minimal
context such as what is produced by croak.
Carp provides mechanisms to globally or locally transform croak's into
confess's, but doesn't have the reverse mechanism to turn confess's into
croak's.