Skip to content

Commit

Permalink
Improve conversion.RoundTrip paved conversion error message
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Apr 21, 2024
1 parent b0089fb commit d6c4f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/conversion/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (r *registry) RoundTrip(dst, src resource.Terraformed) error { //nolint:goc
// convert the map[string]any representation of the conversion target back to
// the original type.
if err := runtime.DefaultUnstructuredConverter.FromUnstructured(dstMap, dst); err != nil {
return errors.Wrap(err, "cannot convert the map[string]any representation of the conversion target object to the target object")
return errors.Wrap(err, "cannot convert the map[string]any representation of the conversion target back to the object itself")
}

// finally at the third stage, run the ManagedConverters
Expand Down

0 comments on commit d6c4f08

Please sign in to comment.