Skip to content
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

Use gRPC-native ServiceError objects for errbacks in client methods #33

Merged
merged 1 commit into from
Nov 13, 2018

Conversation

ggoodman
Copy link
Contributor

This PR changes the types of the error argument to client method callbacks so that these are typed as grpc.ServiceErrors instead of generic Errors. This allows users of this tooling to leverage error codes and metadata without fighting typescript.

Note: grpc@1.10.1 from the package-lock.json was failing to build for me on Mojave and node@10.13.0 so I bumped the version of grpc to the latest 1.x in the package-lock.json.

@agreatfool agreatfool merged commit 78264f1 into agreatfool:master Nov 13, 2018
@agreatfool
Copy link
Owner

New version 2.4.1 has been published. Thank you for your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants