From d240d1a128d35ecc9265822d15ad4441292b537c Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Sun, 26 Aug 2018 11:56:46 +0200 Subject: [PATCH] Fixed typo for error message --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 6800b39..95800e1 100644 --- a/index.js +++ b/index.js @@ -34,13 +34,12 @@ class Pass { generate() { let archive = archiver("zip"); - return this._parseSettings(this.options) .then(() => readdir(this.model)) .catch((err) => { // May have not used this catch but ENOENT error is not enough self-explanatory in the case of external usage if (err.code && err.code === "ENOENT") { - throw new Error(errors.NOT_FOUND.replace("%s", (this.model ? this.model+" " : ""))); + throw new Error(errors.MODEL_NOT_FOUND.replace("%s", (this.model ? this.model+" " : ""))); } throw new Error(err);