Subject: | load will fail after any previous error |
Date: | Wed, 27 Jan 2016 11:25:04 +0000 |
To: | bug-CGI-Session [...] rt.cpan.org |
From: | Steve Johnson <steve.johnson [...] infxsolutions.com> |
Hi,
After some careful testing and code inspection, I've noticed that load()
will always fail after any previous error has been set. This is simply
because the test for errors from the call to _load_pluggables() (line
699 in v4.48) is a test that $class->errstr is not set. However, nothing
earlier in load() explicitly clears this.
Whether a call $self->set_error('') should be just before the call to
_load_pluggables() or inside _load_pluggables() I leave to your
preference :-)
Regards
Steve Johnson