News for hackers. Stuff that matters.
Re:Why Go's Error Handling Is Awesome by majewsky on Tuesday July 07, 2020 @07:17PM (#23765349)
This problem has been addressed in Go 1.13 with wrapped errors. If you get an error from a filesystem operation, you can

  return fmt.Errorf("ListThings failed: %w", err)
which is a different error type, but the caller can downcast it into the original filesystem error type (even across multiple layers of wrapping) if they're interested in specifically these types of errors.

There are no comments on this comment yet.