Co-authored-by: Phil Davis <phil@jankaritech.com>
This commit is contained in:
Jörn Friedrich Dreyer
2020-10-28 20:08:53 +01:00
parent cac8f2ef04
commit b16f0d4d2c

View File

@@ -39,7 +39,7 @@ func (o Ocs) GetSelf(w http.ResponseWriter, r *http.Request) {
if err != nil {
merr := merrors.FromError(err)
if merr.Code == http.StatusNotFound {
// if the user was authenticated why wes he not found?!? log error?
// if the user was authenticated why was he not found?!? log error?
render.Render(w, r, response.ErrRender(data.MetaNotFound.StatusCode, "The requested user could not be found"))
} else {
render.Render(w, r, response.ErrRender(data.MetaServerError.StatusCode, err.Error()))