mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 18:00:34 +00:00
why not ...
Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
360083a486
commit
9f59afe076
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue