fix: jobs/worker - pass through job error from worker process (#3822)

This commit is contained in:
LK HO
2021-04-12 23:41:36 +08:00
committed by GitHub
parent a20f70ed8d
commit 71aa0c9346
4 changed files with 22 additions and 5 deletions

View File

@@ -74,5 +74,7 @@ module.exports = async (pageId) => {
} catch (err) {
WIKI.logger.error(`Rebuilding page tree: [ FAILED ]`)
WIKI.logger.error(err.message)
// exit process with error code
throw err
}
}