You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all errors are simply passed. Adding a little bit of context as we pass it up the chain will help with debugging.
i.e.
_, err := os.Create()
if err != nil{
return fmt.Errof("unable to create file: %v")
}
instead of
_, err := os.Create()
if err != nil{
return err
}
This would be useful when passing up the chain since there are multiple stages and packages used for each command called. An example would be an error in the encoding portion could give additional context in the net layer so we know at what point it fails.
The text was updated successfully, but these errors were encountered:
Currently all errors are simply passed. Adding a little bit of context as we pass it up the chain will help with debugging.
i.e.
instead of
This would be useful when passing up the chain since there are multiple stages and packages used for each command called. An example would be an error in the encoding portion could give additional context in the net layer so we know at what point it fails.
The text was updated successfully, but these errors were encountered: