1
0
Fork 0
mirror of synced 2024-06-18 18:35:37 +12:00

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

This commit is contained in:
mike12345567 2022-05-30 21:54:24 +01:00
parent 81edc7a18a
commit b7075de0cd

View file

@ -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()
})