diff options
Diffstat (limited to 'converter.go')
| -rw-r--r-- | converter.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/converter.go b/converter.go index 2d5c620..9fcbe97 100644 --- a/converter.go +++ b/converter.go @@ -41,10 +41,10 @@ func NewConverter(htmlTemplate string) (converter *Converter, err error) { bhtml, err = os.ReadFile(converter.htmlTemplate) if err != nil { - return nil, fmt.Errorf(`%s: %s: %w`, logp, converter.htmlTemplate, err) + tmplContent = templateIndexHTML + } else { + tmplContent = string(bhtml) } - - tmplContent = string(bhtml) } converter.tmpl, err = converter.tmpl.Parse(tmplContent) |
