diff options
Diffstat (limited to 'modules/context')
-rw-r--r-- | modules/context/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/context/api.go b/modules/context/api.go index 963c5c14f3..5d91ac49a3 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -77,6 +77,10 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) { if status == http.StatusInternalServerError { log.ErrorWithSkip(1, "%s: %s", title, message) + + if macaron.Env == macaron.PROD { + message = "" + } } ctx.JSON(status, APIError{ |