mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-12-15 22:11:43 +01:00
Validate environment variables at startup. resolves #101
This commit is contained in:
@@ -30,12 +30,12 @@ export default (): Solver => {
|
||||
throw Error(`The solver '${method}' is not a valid captcha solving method.`)
|
||||
} else {
|
||||
console.error(e)
|
||||
throw Error(`An error occured loading the solver '${method}'.`)
|
||||
throw Error(`An error occurred loading the solver '${method}'.`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
log.info(`Using '${method} to solve the captcha.`);
|
||||
log.info(`Using '${method}' to solve the captcha.`);
|
||||
|
||||
return captchaSolvers[method]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user