From b86d329d1ef02cd26f9e5e98e7c9fcbd2bf74bec Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 7 Aug 2020 13:34:00 +0530 Subject: [PATCH] rbd: add stagingpath to error message if the stagingpath is not present inside the container send the staging path in error message. Signed-off-by: Madhu Rajanna --- internal/util/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/validate.go b/internal/util/validate.go index daeed0dda..0a21390e8 100644 --- a/internal/util/validate.go +++ b/internal/util/validate.go @@ -27,7 +27,7 @@ func ValidateNodeStageVolumeRequest(req *csi.NodeStageVolumeRequest) error { // validate stagingpath exists ok := checkDirExists(req.GetStagingTargetPath()) if !ok { - return status.Error(codes.InvalidArgument, "staging path does not exists on node") + return status.Errorf(codes.InvalidArgument, "staging path %s does not exists on node", req.GetStagingTargetPath()) } return nil }