diff options
Diffstat (limited to 'template.go')
-rw-r--r-- | template.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/template.go b/template.go index 503af64..8d84f2e 100644 --- a/template.go +++ b/template.go @@ -1,6 +1,7 @@ package main import ( + "errors" html "html/template" "io" "os" @@ -39,6 +40,6 @@ func GetTemplate(templateType, filePath string) (Templater, error) { Funcs(templateFunc). Parse(string(tmpl)) default: - panic("Invalid template-type") + return nil, errors.New("Invalid template type") } } |