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

This commit is contained in:
LK HO authored and GitHub committed 2021-04-12 11:41:36 -04:00
1 parent a20f70ed8d
commit 71aa0c9346
4 files changed
+22 -5

No files matched your search

+2
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
}
}
+2
View File
@@ -90,5 +90,7 @@ module.exports = async (pageId) => {
} catch (err) {
WIKI.logger.error(`Rendering page ID ${pageId}: [ FAILED ]`)
WIKI.logger.error(err.message)
// exit process with error code
throw err
}
}