From 9c5f630ae70c306dce3867c8a76f4728f3c8ff4c Mon Sep 17 00:00:00 2001 From: ChengLei Shao Date: Tue, 22 Aug 2023 09:01:29 +0800 Subject: [PATCH] chore: database connection error log --- packages/core/database/src/database.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/database/src/database.ts b/packages/core/database/src/database.ts index 7440c2c16..cb18366a5 100644 --- a/packages/core/database/src/database.ts +++ b/packages/core/database/src/database.ts @@ -708,6 +708,7 @@ export class Database extends EventEmitter implements AsyncEmitter { console.log('Connection has been established successfully.'); return true; } catch (error) { + console.log(`Unable to connect to the database: ${error.message}`); if (count >= (retry as number)) { throw new Error('Connection failed, please check your database connection credentials and try again.'); }