Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 20499
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



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;
migrated queue: libwww-perl -> WWW-Mechanize