[#1233] neofs-cli: Fix split info marshaling

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-03-22 17:29:45 +03:00 committed by Alex Vanin
parent e2062013cf
commit 2b0460c532

View file

@ -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))
}