diff --git a/cmd/neofs-cli/modules/object.go b/cmd/neofs-cli/modules/object.go index 07b056aab9..7e2d4817b8 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)) }