DBIx-DWIW
view release on metacpan or search on metacpan
lib/DBIx/DWIW.pm view on Meta::CPAN
##
## If DBI::ProxyServer is being used and the target mmysql
## server refuses the connection (wrong password, trying to
## access a db that they've not been given permission for,
## etc.) DBI::ProxyServer just reports "Unexpected EOF from
## server". Let's give the user a hint as to what that
## might mean.
##
if ($ERROR =~ m/^Cannot log in to DBI::ProxyServer: Unexpected EOF from server/) {
$ERROR = "Cannot log in via DBI::ProxyServer: Unexpected EOF from server (check user's MySQL credentials and privileges)";
}
if (not $NoAbort) {
die $ERROR;
}
elsif (not $Quiet) {
warn $ERROR;
}
$@ = $ERROR;
$self->_OperationFailed();
( run in 0.283 second using v1.01-cache-2.11-cpan-4d50c553e7e )