summaryrefslogtreecommitdiff
path: root/packages/backend/src/boot/master.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/boot/master.ts')
-rw-r--r--packages/backend/src/boot/master.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/backend/src/boot/master.ts b/packages/backend/src/boot/master.ts
index ec09b4350b..fc07510ffb 100644
--- a/packages/backend/src/boot/master.ts
+++ b/packages/backend/src/boot/master.ts
@@ -119,8 +119,7 @@ function loadConfigBoot(): Config {
if (typeof exception === 'string') {
configLogger.error(exception);
process.exit(1);
- }
- if (exception.code === 'ENOENT') {
+ } else if ((exception as any).code === 'ENOENT') {
configLogger.error('Configuration file not found', null, true);
process.exit(1);
}