Merge pull request #14137 from grafana/webpack-error-template-fix

fix for issue with error view in production builds
This commit is contained in:
Marcus Efraimsson
2018-11-20 04:59:12 -08:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -115,6 +115,7 @@ func Recovery() macaron.Handler {
c.Data["Title"] = "Server Error"
c.Data["AppSubUrl"] = setting.AppSubUrl
c.Data["Theme"] = setting.DefaultTheme
if setting.Env == setting.DEV {
if theErr, ok := err.(error); ok {