Commit c75ded26 authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Add DBI error string to error message "Can't connect to Database" (GH #34).

parent 4a126d33
......@@ -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