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

Incorrect/incomplete error message #5101

Open
fhoeben opened this issue Sep 13, 2024 · 0 comments
Open

Incorrect/incomplete error message #5101

fhoeben opened this issue Sep 13, 2024 · 0 comments

Comments

@fhoeben
Copy link

fhoeben commented Sep 13, 2024

          @rmosolgo thanks for the fix we indeed get an error message now instead of an exception.

Could you take a look whether it would be possible to change the error to take into account what is actually expected according to the schema (like we get when passing -1)? I now (2.3.16) get only a message and a location (no path). And the message is a bit more general than normally:

Expected a number, but it was malformed ("-")

I expected a path to be present and a message like

Argument 'arg' on Field 'hello' has an invalid value (-foo). Expected type 'MyEnum!'.

Originally posted by @fhoeben in #5088 (comment)

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

No branches or pull requests

1 participant