Subject: | sub error() prints messages only if debugging is enabled |
Date: | Wed, 25 Jun 2008 14:31:18 +0200 |
To: | bug-IO-Socket-SSL [...] rt.cpan.org |
From: | Marco Emilio Poleggi <marcoep [...] gmail.com> |
Hi there,
Subroutine error() has
carp $error."\n".$self->get_ssleay_error() if $DEBUG;
which inhibits printing of useful messages when debugging is not enabled. Thus
catching errors from higher level modules, such as SOAP::Lite, is difficult.
I suggest to remove 'if $DEBUG', so that anyone is free to catch the warnings
thrown by carp with appropriate __WARN__ handlers.
Cheers,
Marco E. Poleggi