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

Attach rawMessage property to error on execute() #105

Merged
merged 1 commit into from
Feb 19, 2018

Conversation

princjef
Copy link
Contributor

Some gremlin-compatible endpoints (such as Azure CosmosDB Graph) provide additional metadata in the message which is useful for processing. It's possible to retrieve this information using a custom executeHandler, but the metadata is swallowed when an error occurs, making it impossible for a client to retrieve it.

This change adds a rawMessage property to the error emitted so that clients can retrieve additional structured information from the message when errors occur. I'm also open to any suggestions for other approaches/field names. I went with this because it was simple and non-breaking without limiting the available information.

@jbmusso jbmusso merged commit 8f1a7b3 into jbmusso:master Feb 19, 2018
@jbmusso
Copy link
Owner

jbmusso commented Feb 19, 2018

Thanks! That makes sense.

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.

None yet

2 participants