mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-08-15 17:55:54 +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;
|
||||
}
|
||||
|
||||
// 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;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user