Commit 78a2dec2 authored by Jesús Espino's avatar Jesús Espino Committed by Elisabeth Kulzer
Browse files

Fix empty string on app error (#15166)

parent aa72eec0
......@@ -2172,7 +2172,7 @@ func (a *App) ConvertBotToUser(bot *model.Bot, userPatch *model.UserPatch, sysad
appErr := a.Srv().Store.Bot().PermanentDelete(bot.UserId)
if appErr != nil {
return nil, model.NewAppError("ConvertBotToUser", "", nil, err.Error(), http.StatusInternalServerError)
return nil, model.NewAppError("ConvertBotToUser", "app.user.convert_bot_to_user.app_error", nil, err.Error(), http.StatusInternalServerError)
}
return user, nil
......
[
{
"id": "",
"translation": ""
},
{
"id": "April",
"translation": "April"
......@@ -4358,6 +4354,10 @@
"id": "app.user.complete_switch_with_oauth.blank_email.app_error",
"translation": "Unable to complete SAML login with an empty email address."
},
{
"id": "app.user.convert_bot_to_user.app_error",
"translation": "Unable to convert bot to user."
},
{
"id": "app.user.permanentdeleteuser.internal_error",
"translation": "Unable to delete user."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment