From bdbf1a99ef0197330cb455f4cca77a0a7798764e Mon Sep 17 00:00:00 2001 From: Rakshith R Date: Mon, 10 Jun 2024 15:27:05 +0530 Subject: [PATCH] rbd: use internal as default error code in getGRPCError() This commit replaces codes.Unknown with codes.Internal as the default error code in getGRPCError(). Signed-off-by: Rakshith R --- internal/csi-addons/rbd/replication.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/csi-addons/rbd/replication.go b/internal/csi-addons/rbd/replication.go index f8daa72ce96a..5a6df0203033 100644 --- a/internal/csi-addons/rbd/replication.go +++ b/internal/csi-addons/rbd/replication.go @@ -792,8 +792,8 @@ func getGRPCError(err error) error { } } - // Handle any other non nil error not listed in the map - return status.Error(codes.Unknown, err.Error()) + // Handle any other non nil error not listed in the map as internal error + return status.Error(codes.Internal, err.Error()) } // GetVolumeReplicationInfo extracts the RBD volume information from the volumeID, If the