Cleaner, more robust and efficient error handling for grofer #94
Replies: 2 comments 4 replies
-
Okay I'm not very familiar with the overall architecture, but this is what I envision - a single thread/function as an error handler, which is capable of handling all errors gracefully. When any of the individual thread hit an error, pass the error (and control) to the error handling thread. |
Beta Was this translation helpful? Give feedback.
-
Here's an image from Go Systems conf, SF 2020. We could implement this in places where there are a bunch of consecutive error checks, like in |
Beta Was this translation helpful? Give feedback.
-
Related issue: #92
This might be a good starting point: https://github.com/cockroachdb/errors
Beta Was this translation helpful? Give feedback.
All reactions