From 330012395587fe87ce36c29b3c5d1941aa022d0b Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Mon, 26 Jun 2023 17:22:32 +0000 Subject: Bug fixes & clearer presentation of errors to end user --- database.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'database.js') diff --git a/database.js b/database.js index d8e2d92..1f5b68f 100644 --- a/database.js +++ b/database.js @@ -44,8 +44,7 @@ class Database { this.pool.query(query, (err, res, fields) => { - if (err) - reject(err) + if (err) reject(err); resolve(res); }); }) -- cgit v1.2.3