Skip to content

Commit 6dff21c

Browse files
committed
chore: improve error message
1 parent b493066 commit 6dff21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/recipe/loader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func LoadRecipe(path string) (*Recipe, error) {
4545
recipe := NewRecipe()
4646
err = yaml.Unmarshal(dat, &recipe)
4747
if err != nil {
48-
return nil, err
48+
return nil, fmt.Errorf("error when reading %s file: %w", MetadataFileName+YAMLExtension, err)
4949
}
5050

5151
recipe.Templates, err = loadTemplates(filepath.Join(rootDir, TemplatesDirName))

0 commit comments

Comments
 (0)