Subject: | PATCH: replace die with croak in HTML::Form for better diagnostics |
By replacing "die" with "croak", I can diagnostics telling me the
location of the issue in my own code, not the location in HTML::Form
that is correctly emitting the error. The patch is mostly simple find
and replace of "die" with Carp::croak.
504c504
< die "No '$name' parameter exists" unless @inputs;
---
Show quoted text
> Carp::croak "No '$name' parameter exists" unless @inputs;
521c521
< die $err if $err;
---
Show quoted text> Carp::croak $err if $err;
1042c1042
< die "Assert" if @{$self->{menu}} != 1;
---
Show quoted text> Carp::croak "Assert" if @{$self->{menu}} != 1;