fix: jobs/worker - pass through job error from worker process (#3822)
This commit is contained in:
1 parent
a20f70ed8d
commit
71aa0c9346
4 files changed
+22
-5
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user