We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3d059 commit 176f2ceCopy full SHA for 176f2ce
src/index.ts
@@ -12,7 +12,13 @@ async function init() {
12
process.exit(1);
13
});
14
15
- await initDb();
+ try {
16
+ await initDb();
17
+ } catch (e) {
18
+ Logger.error(`Init Db: ${e}`);
19
+ process.exit(1);
20
+ }
21
+
22
// edge case clause for creating compatible .db files, do not enable
23
if (config.mode === "init-db-and-exit") process.exit(0);
24
// do not enable init-db-only mode for usage.
@@ -27,4 +33,4 @@ async function init() {
27
33
}).setTimeout(15000);
28
34
}
29
35
30
-init().catch((err) => Logger.error(err));
36
+init().catch((err) => Logger.error(`Index.js: ${err}`));
0 commit comments