Skip to content

Commit

Permalink
Add more context information to returned error. (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Owsiany <[email protected]>
  • Loading branch information
porridge authored May 13, 2020
1 parent 25feaa8 commit e6259a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/test/utils/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func Namespaced(dClient discovery.DiscoveryInterface, obj runtime.Object, namesp
resource, err := GetAPIResource(dClient, obj.GetObjectKind().GroupVersionKind())
if err != nil {

return "", "", err
return "", "", fmt.Errorf("retrieving API resource for %v failed: %v", obj.GetObjectKind().GroupVersionKind(), err)
}

if !resource.Namespaced {
Expand Down

0 comments on commit e6259a4

Please sign in to comment.