Skip to content

Commit 508ebbd

Browse files
Update error message for end users
1 parent 4dc330e commit 508ebbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gce-pd-csi-driver/node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func (ns *GCENodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStage
353353
if ns.DataCacheEnabledNodePool {
354354
return nil, status.Error(codes.DataLoss, fmt.Sprintf("Error validate configuration for Data Cache: %v", configError.Error()))
355355
}
356-
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("Data Cache PVC is requested for an incompatible node pool: %v", configError.Error()))
356+
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("The Data Cache PVC is scheduled on an incompatible node pool. Please select a node pool with data cache configured: %v", configError.Error()))
357357
}
358358
devicePath, err = setupCaching(devFsPath, req, nodeId)
359359
if err != nil {

0 commit comments

Comments
 (0)