mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-10 05:17:12 +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.on('uncaughtException', function(err) {
|
||||
// Avoid crashing in NodeJS 17 due to UnhandledPromiseRejectionWarning: Unhandled promise rejection.
|
||||
log.error(err)
|
||||
})
|
||||
|
||||
validateEnvironmentVariables();
|
||||
|
||||
testWebBrowserInstallation().then(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user