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 {