Commit b92077e8 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #35 from racke/topic/dbi-error-gh34

Add DBI error string to error message "Can't connect to Database" by racke
parents 4a126d33 c75ded26
......@@ -152,7 +152,7 @@ sub connect {
unless ($self->ping) {
unless ($persistent_connection_of{$self->{_id}}) {
$log->syslog('err', 'Can\'t connect to Database %s', $self);
$log->syslog('err', 'Can\'t connect to Database %s: %s', $self, $DBI::errstr);
$self->{_status} = 'failed';
return undef;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment