-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "error" field from errors. #1098
Comments
Hi @cyantarek. The Hope that explains it! |
We want to fix this for v2 |
Since it's a breaking change anyways, are we to just remove the field in |
Sure thing |
Actually, not sure we even need errors.proto anymore. We probably will just marshal the |
I've started looking into this. I'll include the status change. :) |
* runtime/errors: remove 'error' field, use gRPC status instead Signed-off-by: Stephan Renatus <[email protected]> * internal/errors.proto: regenerate Signed-off-by: Stephan Renatus <[email protected]> * protoc-gen-swagger: use google.rpc.Status instead of .grpc.gateway.runtime.Error Signed-off-by: Stephan Renatus <[email protected]> * protoc-gen-swagger: rename AddStreamError -> AddErrorDefs, add to tests There are probably better ways to write this in than calling `AddErrorDefs` everywhere. Signed-off-by: Stephan Renatus <[email protected]> * run "bazel run :gazelle" Signed-off-by: Stephan Renatus <[email protected]> * rebuild all the things Note: I've also run find examples -name "*runtime_error*" -delete before. It seems like those are not captured by any of the *clean make targets. Signed-off-by: Stephan Renatus <[email protected]> * runtime/errors: fix comment, use status.Convert Signed-off-by: Stephan Renatus <[email protected]> * integration_test: port error status test to proto_error_test.go Signed-off-by: Stephan Renatus <[email protected]>
This is done in |
Here (link)
The Error and Message both field got s.Message(), I think it's not clean to duplicate the same thing. I don't know if there's any special intention behind it.
Please let us know. Thanks.
The text was updated successfully, but these errors were encountered: