mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
chore: database connection error log
This commit is contained in:
parent
0532d67e0b
commit
9c5f630ae7
@ -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.');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user