From 4c88a97698d3eeccfffa50b19d312238bcd189ac Mon Sep 17 00:00:00 2001 From: Ivan Gnusarkov Date: Tue, 18 Jun 2024 14:10:35 +0700 Subject: [PATCH] added error message when db connection check fails --- scripts/check-db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-db.js b/scripts/check-db.js index 757843ac..cdfeafa3 100644 --- a/scripts/check-db.js +++ b/scripts/check-db.js @@ -44,7 +44,7 @@ async function checkConnection() { success('Database connection successful.'); } catch (e) { - throw new Error('Unable to connect to the database.'); + throw new Error('Unable to connect to the database: ' + e.message); } }