TokenStore migration to return plain errors (#14875)
* TokenStore migration to return plain errors * Fix translations * Fix: returned error is ignored and http.StatusBadRequest is always returned * Fix * Fix translations * Suggestions * Changed from BadRequest to NotFound * Setting the correct http status * Changed test to expect 404 status * Fix error
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4df6019f61
Коммит
8b6a5fc5d7
24
i18n/en.json
24
i18n/en.json
@@ -3982,6 +3982,14 @@
|
||||
"id": "app.reaction.save.save.app_error",
|
||||
"translation": "Unable to save reaction."
|
||||
},
|
||||
{
|
||||
"id": "app.recover.delete.app_error",
|
||||
"translation": "Unable to delete token."
|
||||
},
|
||||
{
|
||||
"id": "app.recover.save.app_error",
|
||||
"translation": "Unable to save the token."
|
||||
},
|
||||
{
|
||||
"id": "app.role.check_roles_exist.role_not_found",
|
||||
"translation": "The provided role does not exist"
|
||||
@@ -6966,22 +6974,6 @@
|
||||
"id": "store.sql_preference.update.app_error",
|
||||
"translation": "Unable to update the preference."
|
||||
},
|
||||
{
|
||||
"id": "store.sql_recover.delete.app_error",
|
||||
"translation": "Unable to delete token."
|
||||
},
|
||||
{
|
||||
"id": "store.sql_recover.get_by_code.app_error",
|
||||
"translation": "Unable to get a token with this code."
|
||||
},
|
||||
{
|
||||
"id": "store.sql_recover.remove_all_tokens_by_type.app_error",
|
||||
"translation": "Unable to remove all the tokens of a type."
|
||||
},
|
||||
{
|
||||
"id": "store.sql_recover.save.app_error",
|
||||
"translation": "Unable to save the token."
|
||||
},
|
||||
{
|
||||
"id": "store.sql_role.delete.update.app_error",
|
||||
"translation": "Unable to delete the role."
|
||||
|
||||
Ссылка в новой задаче
Block a user