浏览代码

fix(server): print extra config keys on error (#5036)

Ishan Jain 1 年之前
父节点
当前提交
8f3ed8ba8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/src/domain/system-config/system-config.core.ts

+ 1 - 1
server/src/domain/system-config/system-config.core.ts

@@ -328,7 +328,7 @@ export class SystemConfigCore {
         }
 
         if (!_.isEmpty(file)) {
-          throw new Error(`Unknown keys found: ${file}`);
+          throw new Error(`Unknown keys found: ${JSON.stringify(file)}`);
         }
 
         this.configCache = overrides;