Skip Menu |

This queue is for tickets about the Config-JSON CPAN distribution.

Report information
The Basics
Id: 83034
Status: new
Priority: 0/
Queue: Config-JSON

People
Owner: Nobody in particular
Requestors: ventatsu+rt.cpan.org [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.5100
Fixed in: (no value)



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.