Project

General

Profile

Support #5257

method to catch error on connection?

Added by Rick Harding almost 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
05/26/2011
Due date:
% Done:

0%

Estimated time:

Description

I'm trying to figure out how to properly catch an exception such as when the db server is unavailable. I've tried binding to a connection.on('error') event, but it doesn't look like it emits one. I see 'error' emitted when a query fails, but nothing on the actual connection attempt. Am I missing the proper way to handle that?

Thanks

No data to display

Also available in: Atom PDF