diff --git a/pkg/web/context.go b/pkg/web/context.go index 413ac3709d6..8375c92097b 100644 --- a/pkg/web/context.go +++ b/pkg/web/context.go @@ -16,6 +16,7 @@ package web import ( "encoding/json" + "fmt" "html/template" "net" "net/http" @@ -103,7 +104,7 @@ func (ctx *Context) HTML(status int, name string, data interface{}) { ctx.Resp.Header().Set(headerContentType, contentTypeHTML) ctx.Resp.WriteHeader(status) if err := ctx.template.ExecuteTemplate(ctx.Resp, name, data); err != nil { - panic("Context.HTML:" + err.Error()) + panic(fmt.Sprintf("Context.HTML - Error rendering template: %s. You may need to build frontend assets \n %s", name, err.Error())) } }