Skip to content

Commit

Permalink
hotfix: wrapt the error of FromMapAndOption
Browse files Browse the repository at this point in the history
  • Loading branch information
chansuke committed Oct 14, 2023
1 parent c8172de commit 18ba44d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/resource/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (rf *Factory) FromMapAndOption(
m map[string]interface{}, args *types.GeneratorArgs) (*Resource, error) {
n, err := yaml.FromMap(m)
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to convert map to YAML node: %w", err)
}
return rf.makeOne(n, args), nil
}
Expand Down

0 comments on commit 18ba44d

Please sign in to comment.