From d6c4f08301094e7d985a655b60b20f1418feffec Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Sun, 21 Apr 2024 21:19:17 +0300 Subject: [PATCH] Improve conversion.RoundTrip paved conversion error message Signed-off-by: Alper Rifat Ulucinar --- pkg/controller/conversion/functions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/conversion/functions.go b/pkg/controller/conversion/functions.go index f72043a0..e65d25b9 100644 --- a/pkg/controller/conversion/functions.go +++ b/pkg/controller/conversion/functions.go @@ -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