From efd988b640da337f55401d62b21238ac14317035 Mon Sep 17 00:00:00 2001 From: rightfold Date: Sat, 4 Mar 2017 23:09:41 +0100 Subject: [PATCH] Pass error to done function --- src/Database/PostgreSQL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/PostgreSQL.js b/src/Database/PostgreSQL.js index f18a544..3b4c03f 100644 --- a/src/Database/PostgreSQL.js +++ b/src/Database/PostgreSQL.js @@ -22,7 +22,7 @@ exports.withConnection = function(pool) { done(); onSuccess(r); }, function(e) { - done(); + done(e); onError(e); }); });