Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
shsun_pure committed Aug 11, 2024
1 parent 96ead5e commit f8dc862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/test/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ func validatePortworxTokenRefresh(cluster *corev1.StorageCluster, timeout, inter
if err != nil || !pidEnabled {
pxSaSecret, err := coreops.Instance().GetSecret(pxSaTokenSecretName, cluster.Namespace)
if err != nil {
return fmt.Errorf("px serviceaccount token validation failed. Unable to get px serviceaccount secret. Err: %w", err)
return fmt.Errorf("failed to get px serviceaccount secret [%s] in namespace [%s]. Err: %w", pxSaTokenSecretName, cluster.Namespace, err)
}
if len(pxSaSecret.Data[core.ServiceAccountTokenKey]) == 0 {
return fmt.Errorf("px serviceaccount token validation failed. Token doesn't exist or length is 0")
Expand Down

0 comments on commit f8dc862

Please sign in to comment.