Subject: | Patch for erratic error info passing bug. |
Date: | Thu, 1 Sep 2016 09:31:13 +0100 |
To: | bug-WWW-Mechanize-CGI [...] rt.cpan.org |
From: | Calvin McCutcheon <calvin.mccutcheon [...] payprop.co.uk> |
Hello to whomever maintains this module,
Attached is a patch to fix a bug whereby the error caught and held in $@
is only sometimes being returned in the 'X-Error' custom header. Said
bug is due to the code which assigns $@ to the $error variable being too
far away from where $@ is set (it is set upon failing an eval block; the
assignment to $error is several statements away and outside the block
where $@ was originally set -- so plenty of time and/or opportunities
for $@ to be munged).
This patch also includes documentation for the currently undocumented
use of the 'X-Error' custom header.
This patch is being released under the same licsense as
WWW::Mechanize::CGI itself (so, to make this explicit: this patch is
licsensed under the same terms as the Perl 5 programming language system
itself).
Thanks,
~Cal
--
Calvin McCutcheon
Senior Software Developer
PayProp Holdings Limited
t: +44 (0) 203 740 7614
w: http://www.payprop.co.uk
a: PayProp House, 44 London Road, Sevenoaks TN13 1AS, United Kingdom
t = telephone, w = website, a = address
This is an official email from PayProp and is protected by a disclaimer.
If you are not the intended recipient of this email,
please visit: http://www.payprop.co.uk/cgi-bin/giga.cgi?cmd=terms
Message body is not shown because sender requested not to inline it.