diff --git a/index.js b/index.js index 3ebe692984..456b11e9e2 100644 --- a/index.js +++ b/index.js @@ -132,6 +132,11 @@ function initHexo () { }, ) }) + .catch((err) => { + return reject({ + message: err, + }) + }) }) // start Hexo .then(() => hexo.init().then(() => hexo.call(cmd, args)))