fix: missing returning error and free callback stream (#187)

This commit is contained in:
Ettore Di Giacinto authored and GitHub committed 2023-05-04 19:49:43 +02:00
1 parent 77ce8b953e
commit 714bfcd45b
3 files changed
+23 -16

No files matched your search

+1 -2
View File
@@ -81,10 +81,9 @@ func (ml *ModelLoader) TemplatePrefix(modelName string, in interface{}) (string,
if exists {
m = t
}
}
if m == nil {
return "", nil
return "", fmt.Errorf("failed loading any template")
}
var buf bytes.Buffer