diff --git a/server/channels/api4/license.go b/server/channels/api4/license.go index 358960272f..abbdf8bcfb 100644 --- a/server/channels/api4/license.go +++ b/server/channels/api4/license.go @@ -355,7 +355,7 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) { // for true-up reviews to be completed. err = c.App.Cloud().SubmitTrueUpReview(c.AppContext.Session().UserId, profileMap) if err != nil { - c.SetJSONEncodingError(err) + c.Err = model.NewAppError("requestTrueUpReview", "api.license.true_up_review.failed_to_submit", nil, err.Error(), http.StatusInternalServerError) return } diff --git a/server/i18n/en.json b/server/i18n/en.json index e91fbf2656..d16e605ef0 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -2089,6 +2089,10 @@ "id": "api.license.true_up_review.create_error", "translation": "Could not create true up status record" }, + { + "id": "api.license.true_up_review.failed_to_submit", + "translation": "Failed to submit true up review profile to CWS." + }, { "id": "api.license.true_up_review.get_status_error", "translation": "Could not get true up status records"