Skip to content

Commit c0aad1f

Browse files
Display error in CheckForHub (#363)
Signed-off-by: aii-nozomu-oki <[email protected]>
1 parent 5cbf775 commit c0aad1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/helpers/check/check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func CheckForHub(client clusterclient.Interface) error {
2828
return fmt.Errorf(msg)
2929

3030
}
31-
return fmt.Errorf("failed to list GroupVersion: %s", clusterv1.GroupVersion.String())
31+
return fmt.Errorf("failed to list GroupVersion %s: %s", clusterv1.GroupVersion.String(), err)
3232

3333
}
3434
flag := findResource(list, ManagedClusterResourceName)

0 commit comments

Comments
 (0)