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
This commit is contained in:
Alexis Couvreur
2021-12-15 10:12:04 +01:00
committed by GitHub
parent 327211cbbf
commit beb13ab3f9

View File

@@ -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()