mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
cephfs: return GRPC error in NodeGetVolumeStats
in case of failure return GRPC error to the caller. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
81809500be
commit
a666d452bf
@ -344,5 +344,5 @@ func (ns *NodeServer) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetVo
|
||||
return csicommon.FilesystemNodeGetVolumeStats(ctx, targetPath)
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("targetpath %q is not a directory or device", targetPath)
|
||||
return nil, status.Errorf(codes.InvalidArgument, "targetpath %q is not a directory or device", targetPath)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user