不要怂,就是干,撸起袖子干!

Commit e1d048e2 by Mick Hansen

Add error handler from getConnection to query

1 parent 81583874
Showing with 3 additions and 0 deletions
......@@ -184,6 +184,9 @@ module.exports = (function() {
});
this.getConnection(options, function (err, client) {
if (err) {
return query.emit('error', err)
}
query.client = client
query.run(sql)
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!