Minor improvements in debug traces

This commit is contained in:
ngosang
2021-04-04 18:42:04 +02:00
parent 8aa7723f45
commit b4c99d8426
5 changed files with 13 additions and 14 deletions

View File

@@ -12,8 +12,7 @@ import { SolverOptions } from '.'
export default async function solve({ url }: SolverOptions): Promise<string> {
try {
const token = await solveCaptcha(url)
return token
return await solveCaptcha(url)
} catch (e) {
console.error(e)
return null