diff --git a/src/index.js b/src/index.js index 7f169d14bd2a5617c44289b850c97651dad97bf6..48ba92bda01b238039a69be93c2f36b297cf6c08 100644 --- a/src/index.js +++ b/src/index.js @@ -52,7 +52,7 @@ class UniID { try { configContent = uniIDConfig.config() } 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} if (Array.isArray(configContent)) {