From 62b293b7ab6a8e9c9d5bbf1b97384fe713e4f73e Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Tue, 30 Aug 2022 13:25:00 +0300 Subject: [PATCH] [#1711] adm: Add error context To make all the calls in the command to be in the same form. Signed-off-by: Pavel Karpy --- cmd/neofs-adm/internal/modules/storagecfg/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/neofs-adm/internal/modules/storagecfg/root.go b/cmd/neofs-adm/internal/modules/storagecfg/root.go index a56cbd3c20..ace554c5b1 100644 --- a/cmd/neofs-adm/internal/modules/storagecfg/root.go +++ b/cmd/neofs-adm/internal/modules/storagecfg/root.go @@ -350,7 +350,9 @@ func depositGas(cmd *cobra.Command, acc *wallet.Account, network string) { neofsHash, _ := util.Uint160DecodeStringLE(n3config[network].NeoFSContract) gasHash, err := mainClient.GetNativeContractHash(nativenames.Gas) - fatalOnErr(err) + if err != nil { + fatalOnErr(fmt.Errorf("gas contract hash: %w", err)) + } mainActor, err := actor.NewSimple(mainClient, acc) if err != nil {