From 9f59afe0768f42b3044651db4608f7bc701b627b Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 24 May 2020 16:25:09 +0200 Subject: [PATCH] why not ... Co-authored-by: zeripath --- modules/context/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/context/api.go b/modules/context/api.go index fdb527ca66..8005036c8c 100644 --- a/modules/context/api.go +++ b/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 {