codeship / go-retro

Retryable errors in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don’t just check errors, handle them gracefully

yanpozka opened this issue · comments

Compare strings to check errors is considered a very bad practice, like this example from the README:

if err.Error() == "EOF" {

Instead I recommend this reading http://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully

Totally, this is a readme, don't copy and paste to implement it

Added some more examples, took that out of the readme