-
Notifications
You must be signed in to change notification settings - Fork 26
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
Errors lose nested error descriptions #122
Comments
Hey @wlockiv. Nice catch. |
As an extension to this, the I have UDFs with many levels of nesting, and this is what I've seen and have been unable to catch:
Since |
Howdy!
I'm using this lib in conjunction w/ Fauna functions to make a GraphQL server. I know Fauna has a product for that - this is more of a learning project than anything else.
Anyway, I've created a
create_user
function that takes a lot of inspiration from the website's authentication tutorial:It creates a user only if the handle and email address is not unique. Otherwise, it
Aborts
with a message describing the problem. Calling this from the shell is helpful - I get exactly what I expect:However, the
err
from the call via this lib'sclient.Query(...)
method only provides a synthesis of the top-level message:This makes it hard to handle the error unambiguously. Does this library support either:
If neither, does this make sense to add to the library? If so, where would be a good place to start? I don't mind contributing, but I started learning Go (and FaunaDB) a couple of weeks ago so I'm apprehensive about it at the moment.
The text was updated successfully, but these errors were encountered: