Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #10 from bestlibre/parsing_error
Browse files Browse the repository at this point in the history
More precise error message when login successfull
  • Loading branch information
cyr-ius authored May 19, 2020
2 parents 85abd46 + aea06e1 commit f9b68b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/cozytouch/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def async_step_user(self, user_input=None):
errors = {"base": "login_inccorect"}
_LOGGER.error("Error: %s", e)
except CozytouchException as e:
errors = {"base": "login_inccorect"}
errors = {"base": "parsing"}
_LOGGER.error("Error: %s", e)

if "base" not in errors:
Expand Down
1 change: 1 addition & 0 deletions custom_components/cozytouch/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"error": {
"login_inccorect": "User or password inccorect",
"parsing": "Server response non parsable",
"unknown": "Unknown error occurred"
}
}
Expand Down
1 change: 1 addition & 0 deletions custom_components/cozytouch/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
},
"error": {
"login_inccorect": "Utilisateur ou mot de passe incorrect.",
"parsing": "Interpretation de la réponse du serveur impossible",
"unknown": "Erreur inconnue."
}
}
Expand Down

0 comments on commit f9b68b7

Please sign in to comment.