projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2c4c67b
)
croak on DBI->connect errors
Brandon L. Black [Mon, 20 Feb 2006 02:46:16 +0000 (
02:46
+0000)]
lib/DBIx/Class/Storage/DBI.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI.pm
b/lib/DBIx/Class/Storage/DBI.pm
index
578735e
..
2143463
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI.pm
+++ b/
lib/DBIx/Class/Storage/DBI.pm
@@
-299,7
+299,10
@@
sub _connect {
return $dbh;
}
- DBI->connect(@info);
+ my $dbh = DBI->connect(@info);
+ croak "DBI Connection failed: $DBI::errstr"
+ unless $dbh;
+ $dbh;
}
=head2 txn_begin