Browse Source

Adding checking for zlib error, to try and stop if it occurs.

master
mike12345567 4 years ago
parent
commit
b7075de0cd
  1. 5
      packages/server/src/app.ts

5
packages/server/src/app.ts

@ -102,6 +102,11 @@ const shutdown = () => {
}
process.on("uncaughtException", err => {
// @ts-ignore
// don't worry about this error, comes from zlib isn't important
if (err && err["code"] === "ERR_INVALID_CHAR") {
return
}
console.error(err)
shutdown()
})

Loading…
Cancel
Save