Application: Make error-template title configurable (#40310)

* Fix error-template title

as in index-template.html

* Test: fix for AppTitle

Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
This commit is contained in:
Ben RUBSON
2021-10-13 08:35:01 +02:00
committed by GitHub
co-authored by Hugo Häggmark
parent 30c1e7fa5c
commit 3d9e2d8c82
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -30,10 +30,11 @@ type ReqContext struct {
func (ctx *ReqContext) Handle(cfg *setting.Cfg, status int, title string, err error) {
data := struct {
Title string
AppTitle string
AppSubUrl string
Theme string
ErrorMsg error
}{title, cfg.AppSubURL, "dark", nil}
}{title, "Grafana", cfg.AppSubURL, "dark", nil}
if err != nil {
ctx.Logger.Error(title, "error", err)
if setting.Env != setting.Prod {