Wrap errors
This commit is contained in:
1 parent
bfba5f4028
commit
208ffce968
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ type Templates struct {
|
||||
func NewTemplates(funcMap template.FuncMap) (*Templates, error) {
|
||||
templates, err := fs.Glob(web.Templates, "*.tpl")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("glob: %w", err)
|
||||
}
|
||||
|
||||
result := &Templates{
|
||||
|
||||
Reference in new issue
Block a user