Skip to content

Commit

Permalink
simulator: show more error information on the specific path
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
  • Loading branch information
Vicente-Cheng authored and bk201 committed Nov 18, 2022
1 parent 7760648 commit e8c9422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/simulator/objects/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (o *ObjectManager) ApplyObjects(objs []runtime.Object, patchStatus bool, sk
//GVK specific cleanup needed before objects can be created
err = objectHousekeeping(unstructuredObj)
if err != nil {
return fmt.Errorf("error during housekeeping on objects %v", err)
return fmt.Errorf("error during housekeeping on objects %v, error: %v", unstructuredObj, err)
}

restMapping, err := findGVR(v.GetObjectKind().GroupVersionKind(), o.config)
Expand Down

0 comments on commit e8c9422

Please sign in to comment.