mirror of
https://github.com/grafana/grafana.git
synced 2026-08-18 17:15:08 -05:00
@@ -115,11 +115,11 @@ func Recovery() macaron.Handler {
|
||||
c.Data["Title"] = "Server Error"
|
||||
c.Data["AppSubUrl"] = setting.AppSubUrl
|
||||
|
||||
if theErr, ok := err.(error); ok {
|
||||
c.Data["Title"] = theErr.Error()
|
||||
}
|
||||
|
||||
if setting.Env == setting.DEV {
|
||||
if theErr, ok := err.(error); ok {
|
||||
c.Data["Title"] = theErr.Error()
|
||||
}
|
||||
|
||||
c.Data["ErrorMsg"] = string(stack)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user