Re:Things from Python I'd miss in Go
by RBerenguel on Tuesday June 10, 2014 @09:49AM
(#7872427)
The standard is usually
The error will propagate up, since all calls to a function returning err should be checking for the err. In a not-so-ideal world, just return err up. In a relatively more sane world, you can send "up" extra information along the error (just creating a new error with extra info) to know the error path. The first caller will/should handle this error then.
[ Parent
| on HN ]
There are no comments on this comment yet.