提交 6f397dc2 编写于 作者: 雪洛's avatar 雪洛

fix: config文件不合法时未抛出具体错误

上级 de47a43b
...@@ -52,7 +52,7 @@ class UniID { ...@@ -52,7 +52,7 @@ class UniID {
try { try {
configContent = uniIDConfig.config() configContent = uniIDConfig.config()
} catch (error) { } catch (error) {
throw new Error('Invalid uni-id config file\n' + error.messages) throw new Error('Invalid uni-id config file\n' + error.message)
} }
// require [1,2] => {0:1,1:2} // require [1,2] => {0:1,1:2}
if (Array.isArray(configContent)) { if (Array.isArray(configContent)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册