For now, simple method to show backend error of THI to show the user that the error does not occur from the part of Neuland.
🤖 Generated by Copilot at 0a26563
Summary
🌐🐛🚧
Improved login error handling and feedback for the rogue-thi-app. Added a new error.backend string to the translation files login.json for German and English.
Oh we are the coders of the seaAnd we work on the login screenWe add error.backend to the filesSo the users know what's wrong when it fails
Walkthrough
Add constant array KNOWN_BACKEND_ERRORS to store error messages from THI backend (link)
Modify login function to catch and log errors during login process (link)
Set failure state to error.backend if error message matches any of the KNOWN_BACKEND_ERRORS (link)
Set failure state to error.generic otherwise (link)
Update German and English translation files to include new string error.backend with corresponding message (link, link)
For now, simple method to show backend error of THI to show the user that the error does not occur from the part of Neuland.
🤖 Generated by Copilot at 0a26563
Summary
🌐🐛🚧
Improved login error handling and feedback for the rogue-thi-app. Added a new
error.backend
string to the translation fileslogin.json
for German and English.Walkthrough
KNOWN_BACKEND_ERRORS
to store error messages from THI backend (link)login
function to catch and log errors during login process (link)failure
state toerror.backend
if error message matches any of theKNOWN_BACKEND_ERRORS
(link)failure
state toerror.generic
otherwise (link)error.backend
with corresponding message (link, link)