Skip to content

Commit

Permalink
print the actual error when parsing resourceID panics
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyih committed Mar 26, 2024
1 parent 906af1c commit a749600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/krmtotf/tftokrm.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func getResourceIDIfSupported(resource *Resource, status map[string]interface{})
if err != nil {
panic(fmt.Errorf("incorrect format of server-generated "+
"resource ID for resource Kind '%s', Name '%s', Namespace "+
"'%s'", resource.Kind, resource.Name, resource.Namespace))
"'%s': %w", resource.Kind, resource.Name, resource.Namespace, err))
}

return resourceID, true
Expand Down

0 comments on commit a749600

Please sign in to comment.