diff --git a/pkg/util/csi/volume_snapshot.go b/pkg/util/csi/volume_snapshot.go index 7d00664cd..8e59dd69f 100644 --- a/pkg/util/csi/volume_snapshot.go +++ b/pkg/util/csi/volume_snapshot.go @@ -447,8 +447,13 @@ func GetVolumeSnapshotClassForStorageClass( return &vsClass, nil } return nil, fmt.Errorf( - "failed to get VolumeSnapshotClass for provisioner %s, ensure that the desired VolumeSnapshot class has the %s label or %s annotation", - provisioner, velerov1api.VolumeSnapshotClassSelectorLabel, velerov1api.VolumeSnapshotClassKubernetesAnnotation) + "failed to get VolumeSnapshotClass for provisioner %s: "+ + "ensure that the desired VolumeSnapshotClass has the %s label or %s annotation, "+ + "and that its driver matches the StorageClass provisioner", + provisioner, + velerov1api.VolumeSnapshotClassSelectorLabel, + velerov1api.VolumeSnapshotClassKubernetesAnnotation, + ) } // IsVolumeSnapshotClassHasListerSecret returns whether a volumesnapshotclass has a snapshotlister secret