From beb13ab3f932d454959566889aef2193ea195642 Mon Sep 17 00:00:00 2001 From: Alexis Couvreur Date: Wed, 15 Dec 2021 10:12:04 +0100 Subject: [PATCH] fix: correctly use default errorPage template instead of loadingPage template on GetErrorPage (#17) Error introduced in release v1.1.0 It used the loadingPage default template instead of the errorPage default template on GetErrorPage calls --- pkg/pages/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pages/error.go b/pkg/pages/error.go index 9edc562..172aaf7 100644 --- a/pkg/pages/error.go +++ b/pkg/pages/error.go @@ -182,7 +182,7 @@ func GetErrorPage(template_path string, name string, e string) string { if template_path != "" { tpl, err = template.New(path.Base(template_path)).ParseFiles(template_path) } else { - tpl, err = template.New("loading").Parse(loadingPage) + tpl, err = template.New("error").Parse(errorPage) } if err != nil { return err.Error()