Skip to content

Commit

Permalink
style: 💡 Added explainaition on LOGIN_FAILED -> VENDOR_DOWN conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnivtwelve committed Jul 19, 2024
1 parent fec36a9 commit 7034bb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7034bb5

Please sign in to comment.