mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-11 05:47:13 +00:00
Avoid crashing in NodeJS 17 due to Unhandled promise rejection
This commit is contained in:
parent
cd221bbbf1
commit
2893f72237
@ -39,6 +39,11 @@ process.on('SIGTERM', () => {
|
|||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
process.on('uncaughtException', function(err) {
|
||||||
|
// Avoid crashing in NodeJS 17 due to UnhandledPromiseRejectionWarning: Unhandled promise rejection.
|
||||||
|
log.error(err)
|
||||||
|
})
|
||||||
|
|
||||||
validateEnvironmentVariables();
|
validateEnvironmentVariables();
|
||||||
|
|
||||||
testWebBrowserInstallation().then(() => {
|
testWebBrowserInstallation().then(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user