1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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