mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
47e363ea15
commit
842f4c1d32
@ -115,11 +115,11 @@ func Recovery() macaron.Handler {
|
|||||||
c.Data["Title"] = "Server Error"
|
c.Data["Title"] = "Server Error"
|
||||||
c.Data["AppSubUrl"] = setting.AppSubUrl
|
c.Data["AppSubUrl"] = setting.AppSubUrl
|
||||||
|
|
||||||
|
if setting.Env == setting.DEV {
|
||||||
if theErr, ok := err.(error); ok {
|
if theErr, ok := err.(error); ok {
|
||||||
c.Data["Title"] = theErr.Error()
|
c.Data["Title"] = theErr.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
if setting.Env == setting.DEV {
|
|
||||||
c.Data["ErrorMsg"] = string(stack)
|
c.Data["ErrorMsg"] = string(stack)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user