mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-18 05:25:52 +08:00
fix: process not quitting on errors
This commit is contained in:
parent
17415ed1f1
commit
4b208f44b5
@ -23,5 +23,17 @@ process.on('unhandledRejection', (err) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Looks like Firebase runtime does not handle error properly.
|
||||||
|
// Make sure to quit the process.
|
||||||
|
process.nextTick(() => process.exit(1));
|
||||||
|
|
||||||
|
throw err;
|
||||||
|
});
|
||||||
|
|
||||||
|
process.on('uncaughtException', (err) => {
|
||||||
|
// Looks like Firebase runtime does not handle error properly.
|
||||||
|
// Make sure to quit the process.
|
||||||
|
process.nextTick(() => process.exit(1));
|
||||||
|
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user