Browse Source

why not ...

Co-authored-by: zeripath <art27@cantab.net>
pull/11574/head
6543 5 years ago committed by GitHub
parent
commit
9f59afe076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/context/api.go

2
modules/context/api.go

@ -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 {

Loading…
Cancel
Save