From bced2b2fd29a0f817a9bb2d367efef0ee8012e19 Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Mon, 11 Jan 2021 17:43:56 -0700 Subject: [PATCH] update missing translation string (#16559) Co-authored-by: Mattermod --- app/oauth.go | 4 ++-- i18n/en.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/oauth.go b/app/oauth.go index 4a3709120c..72395b99a8 100644 --- a/app/oauth.go +++ b/app/oauth.go @@ -717,7 +717,7 @@ func (a *App) GetAuthorizationCode(w http.ResponseWriter, r *http.Request, servi sso, e2 := provider.GetSSOSettings(a.Config(), service) if e2 != nil { - return "", model.NewAppError("GetAuthorizationCode.GetSSOSettings", "api.user.get_authorization_code.endpoint.app_error", nil, e.Error(), http.StatusNotImplemented) + return "", model.NewAppError("GetAuthorizationCode.GetSSOSettings", "api.user.get_authorization_code.endpoint.app_error", nil, e2.Error(), http.StatusNotImplemented) } secure := false @@ -782,7 +782,7 @@ func (a *App) AuthorizeOAuthUser(w http.ResponseWriter, r *http.Request, service sso, e2 := provider.GetSSOSettings(a.Config(), service) if e2 != nil { - return nil, "", nil, nil, model.NewAppError("GetAuthorizationCode.GetSSOSettings", "api.user.get_authorization_code.endpoint.app_error", nil, e.Error(), http.StatusNotImplemented) + return nil, "", nil, nil, model.NewAppError("AuthorizeOAuthUser.GetSSOSettings", "api.user.get_authorization_code.endpoint.app_error", nil, e.Error(), http.StatusNotImplemented) } b, strErr := b64.StdEncoding.DecodeString(state) diff --git a/i18n/en.json b/i18n/en.json index cd43b2d0d2..65dda6ca22 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -3220,7 +3220,7 @@ }, { "id": "api.user.get_authorization_code.endpoint.app_error", - "translation": "Failed to get authorization code." + "translation": "Error retreiving endpoint from Discovery Document." }, { "id": "api.user.get_uploads_for_user.forbidden.app_error",