incorporate requested changes

Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2023-11-15 11:23:24 +01:00
parent c5d3b74cd4
commit 407238efa5
+1 -2
View File
@@ -91,8 +91,7 @@ func (g Graph) GetMe(w http.ResponseWriter, r *http.Request) {
preferedLanguage, _, err := getUserLanguage(r.Context(), g.valueService)
if err != nil {
logger.Error().Err(err).Msg("could not get user language")
render.Status(r, http.StatusInternalServerError)
render.JSON(w, r, me)
errorcode.GeneralException.Render(w, r, http.StatusInternalServerError, "could not get user language")
return
}