From 7034bb51e619326e12847e9ba816b2eee257186f Mon Sep 17 00:00:00 2001 From: Vince Linise Date: Fri, 19 Jul 2024 15:31:43 +0200 Subject: [PATCH] style: :bulb: Added explainaition on LOGIN_FAILED -> VENDOR_DOWN conversion --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 5700310..ea23b7a 100644 --- a/src/index.js +++ b/src/index.js @@ -72,7 +72,8 @@ async function start(fields) { // Toutatice / Educonnect failed to login throw new Error('LOGIN_FAILED') } else if (error.includes('LOGIN_FAILED')) { - throw new Error('LOGIN_FAILED') + // If LOGIN_FAILED is thrown lower, the IP address is suspended OR Pronote / Toutatice / Educonnect is down + throw new Error('VENDOR_DOWN') } throw new Error('UNKNOWN_ERROR')