Skip to content

Commit e6e8545

Browse files
committed
update error text
Signed-off-by: Niclas Schad <niclas.schad@stackit.cloud>
1 parent 7efefcc commit e6e8545

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/csi/blockstorage/controllerserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
7878
cloud := cs.Instance
7979

8080
if cs.Driver.blockVolumeCreation {
81-
return nil, status.Error(codes.FailedPrecondition, "CSI driver is in read/update-only mode")
81+
return nil, status.Errorf(codes.FailedPrecondition, "The %s driver is update/read-only mode please migrate to the new driver", legacyDriverName)
8282
}
8383

8484
// Volume Name
@@ -481,7 +481,7 @@ func (cs *controllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateS
481481
cloud := cs.Instance
482482

483483
if cs.Driver.blockVolumeCreation {
484-
return nil, status.Error(codes.FailedPrecondition, "The old driver is update/read-only mode please migrate to the new driver")
484+
return nil, status.Errorf(codes.FailedPrecondition, "The %s driver is update/read-only mode please migrate to the new driver", legacyDriverName)
485485
}
486486

487487
name := req.Name

0 commit comments

Comments
 (0)