Skip to content

Commit 63d56ec

Browse files
sunnylovestiramisucemakd
authored andcommitted
Update error message for end users
1 parent e1d8632 commit 63d56ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ func (ns *GCENodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStage
344344
if ns.DataCacheEnabledNodePool {
345345
return nil, status.Error(codes.DataLoss, fmt.Sprintf("Error validate configuration for Data Cache: %v", configError.Error()))
346346
}
347-
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("Data Cache PVC is requested for an incompatible node pool: %v", configError.Error()))
347+
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()))
348348
}
349349
devicePath, err = setupCaching(devFsPath, req, nodeId)
350350
if err != nil {

0 commit comments

Comments
 (0)