From 2b0460c532e25df6cf6562080229bf7e3778169a Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 22 Mar 2022 17:29:45 +0300 Subject: [PATCH] [#1233] neofs-cli: Fix split info marshaling Signed-off-by: Evgenii Stratonikov --- cmd/neofs-cli/modules/object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index 07b056aa..7e2d4817 100644 --- a/cmd/neofs-cli/modules/object.go +++ b/cmd/neofs-cli/modules/object.go @@ -1114,7 +1114,7 @@ func printSplitInfoErr(cmd *cobra.Command, err error) bool { func printSplitInfo(cmd *cobra.Command, info *object.SplitInfo) { bs, err := marshalSplitInfo(cmd, info) - exitOnErr(cmd, fmt.Errorf("can't marshal split info: %w", err)) + exitOnErr(cmd, errf("can't marshal split info: %w", err)) cmd.Println(string(bs)) }