1
0
mirror of synced 2025-12-23 03:44:00 -05:00

send errors to Failbot in SSR rendering (#30153)

* send errors to failbot in SSR rendering

* wip

* progress

* tidying up

* no point awaiting something that doens't return a promise
This commit is contained in:
Peter Bengtsson
2022-08-22 18:50:18 +02:00
committed by GitHub
parent be09c09146
commit 8eb7898827
6 changed files with 117 additions and 15 deletions

View File

@@ -10,7 +10,7 @@ process.on('uncaughtException', async (err) => {
console.error(err)
try {
await FailBot.report(err)
FailBot.report(err)
} catch (failBotError) {
console.warn('Even sending the uncaughtException error to FailBot failed!')
console.error(failBotError)
@@ -20,7 +20,7 @@ process.on('uncaughtException', async (err) => {
process.on('unhandledRejection', async (err) => {
console.error(err)
try {
await FailBot.report(err)
FailBot.report(err)
} catch (failBotError) {
console.warn('Even sending the unhandledRejection error to FailBot failed!')
console.error(failBotError)