From a30310b2caa5f387aa931fd73152461fb9fd543c Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Wed, 14 Dec 2022 20:06:48 +0300
Subject: [PATCH] [#2145] cli: Do not print "rpc error:" twice
That error part is already included in GRPC's library.
Signed-off-by: Pavel Karpy
---
cmd/frostfs-cli/modules/control/drop_objects.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/frostfs-cli/modules/control/drop_objects.go b/cmd/frostfs-cli/modules/control/drop_objects.go
index 90bfaca3..f2c0a046 100644
--- a/cmd/frostfs-cli/modules/control/drop_objects.go
+++ b/cmd/frostfs-cli/modules/control/drop_objects.go
@@ -40,7 +40,7 @@ var dropObjectsCmd = &cobra.Command{
resp, err = control.DropObjects(client, req)
return err
})
- common.ExitOnErr(cmd, "rpc error: %w", err)
+ common.ExitOnErr(cmd, "", err)
verifyResponse(cmd, resp.GetSignature(), resp.GetBody())