Closed danwt closed 2 years ago
I assigned @mpoke and @sainoe additionally as this is a discussion issue. What do you guys think? Should we get a 4th opinion?
I guess we did this. FYI, make sure all errors are handled and panic if they are related to uncontrollable or unrecoverables. If they are on provider side and due to consumer failure then make sure to recover gracefully.
I just ran gosec and it returned, among other problems, several cases of ignored
error
returns in our code. See pastebin, here are some examplesI will check the cases to see what absolutely must be fixed.
The question is: should we define a rule or strategy about our error handling? E.g. all errors cases should be handled.