diff --git a/index.js b/index.js index 290096186450dfb61707f2db3f341fff8a017a52..0a34b79b5a1835e4de4056135379f4546263db6b 100644 --- a/index.js +++ b/index.js @@ -246978,7 +246978,7 @@ async function activateContract( log('error', 'commanderCollectePublicationMesures') log('error', err) Sentry.captureException('commanderCollectePublicationMesures', err) - throw errors.LOGIN_FAILED + throw errors.CAPTCHA_RESOLUTION_FAILED }) const parsedReply = await xml2js.parseStringPromise(response.body, { @@ -247002,7 +247002,7 @@ async function activateContract( //TODO: handle SGT4B8: Il existe déjà plusieurs demandes en cours sur le point ? //TODO: handle SGT4H9: La demande ne porte pas sur un point équipé d'un compteur communicant ouvert aux services niveau 2. //TODO: handle SGT589: La demande ne peut pas aboutir car le compteur n'est actuellement pas téléopérable. - throw errors.LOGIN_FAILED + throw errors.CAPTCHA_RESOLUTION_FAILED } } @@ -247191,7 +247191,7 @@ async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) { log('error', 'rechercherServicesSouscritsMesures') log('error', err) Sentry.captureException('rechercherServicesSouscritsMesures', err) - throw errors.LOGIN_FAILED + throw errors.CAPTCHA_RESOLUTION_FAILED }) const parsedReply = await xml2js.parseStringPromise(response.body, { @@ -247234,7 +247234,7 @@ async function verifyContract(url, apiAuthKey, appLogin, contractId, pointId) { 'error', 'if an error is thrown here, it probably means that the contract has already been open today and that enedis cannot open a second one. Wait until tomorow to try again' ) - throw errors.LOGIN_FAILED + throw errors.CAPTCHA_RESOLUTION_FAILED } }