mirror of
https://github.com/sablierapp/sablier.git
synced 2026-01-03 19:44:59 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user