1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-24 19:28:38 +00:00

why not ...

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
6543
2020-05-24 16:25:09 +02:00
committed by GitHub
parent 360083a486
commit 9f59afe076

View File

@@ -72,7 +72,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) {
if err, ok := obj.(error); ok { if err, ok := obj.(error); ok {
message = err.Error() message = err.Error()
} else { } else {
message = obj.(string) message = fmt.Sprintf("%s", obj)
} }
if status == http.StatusInternalServerError { if status == http.StatusInternalServerError {