fix: Wrong text for Error.

This commit is contained in:
NekoCyan 2022-12-04 17:09:08 +07:00
parent 7a308f0383
commit ffc3f0e998

View File

@ -31,7 +31,7 @@ module.exports = class CaptchaSolver {
} }
} }
case 'nopecha': { case 'nopecha': {
if (!key || typeof key !== 'string') throw new Error('2captcha key is not provided'); if (!key || typeof key !== 'string') throw new Error('Nopecha key is not provided');
try { try {
const { Configuration, NopeCHAApi } = require('nopecha'); const { Configuration, NopeCHAApi } = require('nopecha');
const configuration = new Configuration({ const configuration = new Configuration({