refactor: core
This commit is contained in:
1 parent
20dec19bfe
commit
0ff5b4e90b
56 files changed
+111
-129
No files matched your search
@@ -66,7 +66,7 @@ class Config implements OB11Config {
|
||||
console.log('get config', jsonData);
|
||||
Object.assign(this, jsonData);
|
||||
// eslint-disable-next-line
|
||||
} catch (e) {
|
||||
} catch (e: any) {
|
||||
if (e instanceof SyntaxError) {
|
||||
console.error(`配置文件 ${ob11ConfigPath} 格式错误,请检查配置文件:`, e.message);
|
||||
}else{
|
||||
|
||||
Reference in new issue
Block a user