diff --git a/libs/bugscan.js b/libs/bugscan.js index 6bcd35b..31e47dc 100644 --- a/libs/bugscan.js +++ b/libs/bugscan.js @@ -11,6 +11,9 @@ class Bugscan { core.request({ _: this.template[opt['type']](argv.url, argv.tasks) }).then(res) + .catch((err)=>{ + rej(err); + }); }); }