Browse Source

Merge pull request #7364 from nocodb/refactor/add-error-logs

refactor: Better error message when meta db connection missing database name
pull/7370/head
աӄա 10 months ago committed by GitHub
parent
commit
53cfb86081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nocodb/src/utils/nc-config/NcConfig.ts

4
packages/nocodb/src/utils/nc-config/NcConfig.ts

@ -162,7 +162,7 @@ export class NcConfig {
database: this.meta.db?.connection?.filename,
});
} else {
throw new Error('Configuration missing meta db connection');
throw new Error('Meta database configuration missing SQLite file name');
}
await metaSqlClient.knex.destroy();
} else {
@ -173,7 +173,7 @@ export class NcConfig {
);
await metaSqlClient.knex.destroy();
} else {
throw new Error('Configuration missing meta db connection');
throw new Error('Meta database configuration missing database name');
}
}
}

Loading…
Cancel
Save