Merge pull request #2786 from IvanGnusarkov/db-check-error-msg

added error message when db connection check fails
This commit is contained in:
Mike Cao 2024-06-27 20:09:36 -07:00 committed by GitHub
commit c1cddc3806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
} }
} }