neofs-node icon indicating copy to clipboard operation
neofs-node copied to clipboard

Do not ignore errors ever

Open carpawell opened this issue 11 months ago • 2 comments

Expected Behavior

Never ignore errors in gonang.

Current Behavior

Code may ignore some errors (even if they are not expected at all, that is not good).

Possible Solution

Panic if an error is not expected at all.

Context

At least CLIs are affected: binding flags, getting flags, marking flags. Some other places may be affected too.

carpawell avatar Apr 02 '24 15:04 carpawell

Narrow down the scope, please. This is too broad.

roman-khimov avatar Apr 02 '24 16:04 roman-khimov

Narrow down the scope, please.

Finding all the places == 90% of solving the issue. We do ignore errors sometimes (Context has 3 examples with cobra lib errs ignorance). What exact do you mean?

carpawell avatar Apr 02 '24 16:04 carpawell