Improved communication of errors from C to Go