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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user