* Fix error-template title
as in index-template.html
* Test: fix for AppTitle
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
(cherry picked from commit 3d9e2d8c82)
Co-authored-by: Ben RUBSON <6764151+benrubson@users.noreply.github.com>
This commit is contained in:
co-authored by
Ben RUBSON
parent
ea2976180b
commit
c57041f13b
@@ -134,10 +134,11 @@ func Recovery(cfg *setting.Cfg) macaron.Handler {
|
||||
|
||||
data := struct {
|
||||
Title string
|
||||
AppTitle string
|
||||
AppSubUrl string
|
||||
Theme string
|
||||
ErrorMsg string
|
||||
}{"Server Error", cfg.AppSubURL, cfg.DefaultTheme, ""}
|
||||
}{"Server Error", "Grafana", cfg.AppSubURL, cfg.DefaultTheme, ""}
|
||||
|
||||
if setting.Env == setting.Dev {
|
||||
if err, ok := r.(error); ok {
|
||||
|
||||
Reference in New Issue
Block a user