Helper for INTERNAL errors
Seems like the reference Gitaly implementation likes to present errors with the INTERNAL code. Here's an example from list_commits_by_ref_name.go
if err := sender.Send(commitByRef); err != nil {
return helper.ErrInternal(err)
}
The Python grpc
library does not crash on uncatched exceptions, it has a standard rewrapping. But I checked by raising a bare Exception
: it produces StatusCode.UNKNOWN
by default.
To achieve isofunctionality with Gitaly, we need
-
internal_error
helper -
use it where relevant.