mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Fixed typo for error message
This commit is contained in:
3
index.js
3
index.js
@@ -34,13 +34,12 @@ class Pass {
|
|||||||
|
|
||||||
generate() {
|
generate() {
|
||||||
let archive = archiver("zip");
|
let archive = archiver("zip");
|
||||||
|
|
||||||
return this._parseSettings(this.options)
|
return this._parseSettings(this.options)
|
||||||
.then(() => readdir(this.model))
|
.then(() => readdir(this.model))
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
// May have not used this catch but ENOENT error is not enough self-explanatory in the case of external usage
|
// 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") {
|
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);
|
throw new Error(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user