We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Given this simple script:
# !/usr/bin/perl use strict; use warnings; use DBI; use DBD::Pg; use DBIx::Connector; my $dbconn = DBIx::Connector->new("dbi:Pg:", '', '', {PrintError => 0}); my $dbh = $dbconn->dbh;
Executing that script when the database isn't running gives an extremely unhelpful error:
% perl notnice.pl Can't call method "STORE" on an undefined value at /Library/Perl/5.12/DBIx/Connector.pm line 37.
I think it would be enough to return undef from _connect if you get undef back from DBI->connect, but you be the judge.
The text was updated successfully, but these errors were encountered:
fe81577
Please give that a try and let me know how it works. If it's more like what you expect, then great. But I also suggest that you set RaiseError => 1.
RaiseError => 1
Sorry, something went wrong.
Works perfectly, thank you!
Great, thanks!
No branches or pull requests
Hi,
Given this simple script:
Executing that script when the database isn't running gives an extremely unhelpful error:
I think it would be enough to return undef from _connect if you get undef back from DBI->connect, but you be the judge.
The text was updated successfully, but these errors were encountered: