Skip to content

Commit

Permalink
Add a catch handler to the contenful.getEntries - that will continue …
Browse files Browse the repository at this point in the history
…to run hexo.init if failed
  • Loading branch information
jennifer-shehane committed Aug 1, 2019
1 parent 4cb7f44 commit b6cda80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ function initHexo () {
},
)
})
.catch((err) => {
return reject({
message: err,
})
})
})
// start Hexo
.then(() => hexo.init().then(() => hexo.call(cmd, args)))
Expand Down

0 comments on commit b6cda80

Please sign in to comment.