-
Notifications
You must be signed in to change notification settings - Fork 20
errors returned are gRPC errors #82
Comments
@dennwc Any progress here? This limits our ability to decide a sane logging policy on gitbase. |
First, please switch to |
@mcarmonaa indeed, that was the case with old protocol. I belive there are no plans right now for changing it in v2. But did you try latest https://gopkg.in/bblfsh/client-go.v3 ? The protocol has been changed (see the DesignDoc for summary of the changes, including error handling), so a new version follows gRPC guldelines on error handling and error field of the response is reserved only for parsing issues. |
bblfsh/web use-case: resp, lang, err := cli.NewParseRequest()...UAST() it looks like the error can be one of:
We need to show please correct me if my assumptions about errors are wrong or if there are any other errors that make sense to handle differently. |
Errors returned by the client are all gRPC errors, so you can't distinguish for example if that error is an
driver.ErrPartialParse
error.The text was updated successfully, but these errors were encountered: