mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-11 01:38:59 +08: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…
x
Reference in New Issue
Block a user