From 9fd375d56d660277e0b2cf47abb55434b10439cd Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Wed, 20 Nov 2024 16:43:21 +0300 Subject: [PATCH] cli: fix nil error of `fetchLatestMissingBlockIndex` in `upload-bin` Close #3653 Signed-off-by: Ekaterina Pavlova --- cli/util/upload_bin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/util/upload_bin.go b/cli/util/upload_bin.go index a5a2e1e65..90c39d529 100644 --- a/cli/util/upload_bin.go +++ b/cli/util/upload_bin.go @@ -138,7 +138,7 @@ func uploadBin(ctx *cli.Context) error { oldestMissingBlockIndex, errBlock := fetchLatestMissingBlockIndex(ctx.Context, p, containerID, acc.PrivateKey(), attr, int(currentBlockHeight), maxParallelSearches, maxRetries) if errBlock != nil { - return cli.Exit(fmt.Errorf("failed to fetch the oldest missing block index from container: %w", err), 1) + return cli.Exit(fmt.Errorf("failed to fetch the oldest missing block index from container: %w", errBlock), 1) } fmt.Fprintln(ctx.App.Writer, "First block of latest incomplete batch uploaded to NeoFS container:", oldestMissingBlockIndex)