mirror of https://github.com/go-gitea/gitea.git
parent
2bb832ece1
commit
e9f58eb5f9
|
@ -277,5 +277,5 @@ func (ctx *Context) JSONServerError(msg string, err error) {
|
|||
errorMessage = fmt.Sprintf("%s: %v", errorMessage, err)
|
||||
}
|
||||
}
|
||||
ctx.JSONError(errorMessage)
|
||||
ctx.JSON(http.StatusBadRequest, map[string]any{"errorMessage": errorMessage, "renderFormat": "text"})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue