From 4a325a5bbeeea624fbdb369f852d3bda9ca04aaa Mon Sep 17 00:00:00 2001 From: Andrey Butusov Date: Wed, 25 Sep 2024 17:31:22 +0300 Subject: [PATCH] cmd/neofs-adm: fix error format From #2942, error format in `adm` is broken. All errors need to be wrapped up: `fmt.Errorf("Error: %w\n", err)`. Signed-off-by: Andrey Butusov --- cmd/neofs-adm/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-adm/main.go b/cmd/neofs-adm/main.go index b8dae5d8be..a85495ee57 100644 --- a/cmd/neofs-adm/main.go +++ b/cmd/neofs-adm/main.go @@ -1,11 +1,15 @@ package main import ( + "fmt" + "github.com/nspcc-dev/neofs-node/cmd/internal/cmderr" "github.com/nspcc-dev/neofs-node/cmd/neofs-adm/internal/modules" ) func main() { err := modules.Execute() - cmderr.ExitOnErr(err) + if err != nil { + cmderr.ExitOnErr(fmt.Errorf("Error: %w\n", err)) + } }