Skip to content

Commit

Permalink
chore: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Dec 10, 2024
1 parent b493066 commit 6dff21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/recipe/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func LoadRecipe(path string) (*Recipe, error) {
recipe := NewRecipe()
err = yaml.Unmarshal(dat, &recipe)
if err != nil {
return nil, err
return nil, fmt.Errorf("error when reading %s file: %w", MetadataFileName+YAMLExtension, err)
}

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

0 comments on commit 6dff21c

Please sign in to comment.