added error message when db connection check fails
This commit is contained in:
1 parent
7a75639dd3
commit
4c88a97698
1 file changed
+1
-1
+1
-1
@@ -44,7 +44,7 @@ async function checkConnection() {
|
|||||||
|
|
||||||
success('Database connection successful.');
|
success('Database connection successful.');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error('Unable to connect to the database.');
|
throw new Error('Unable to connect to the database: ' + e.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user