Skip to content

Conversation

jamesrusso
Copy link
Contributor

wrap the call to DBI ping in eval and handle results.

@jamesrusso jamesrusso closed this May 13, 2015
@jamesrusso jamesrusso reopened this May 13, 2015
@jamesrusso
Copy link
Contributor Author

This is working for me now. Fairly simple change. It's more complicated to try and catch it in the DBI module the way it does error handling..

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you create a new version with this code fimplified?

my $result = eval { $dbh->ping; };
return 0 if $@;

@ambs ambs merged commit 3ba8241 into bigpresh:master Jan 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants