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

codegen: improve error messages #100

Merged
merged 1 commit into from
Sep 11, 2018

Conversation

mathstuf
Copy link
Contributor

This is an initial step. Further improvements could offer suggestions
for what is available.

See #97.

This is an initial step. Further improvements could offer suggestions
for what is available.

See graphql-rust#97.
@mathstuf mathstuf force-pushed the improve-error-messages branch from 9920c1d to a09cb23 Compare September 10, 2018 14:03
Copy link
Member

@tomhoule tomhoule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep we can always improve error messages but this is a very good start. Thanks!

object
} else {
panic!("fragment '{}' cannot operate on unknown type '{}'", self.name, self.on);
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a lot better - I forgot we still had error messages as bad as the original one :/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it was easy to grep for to replace when I hit it :) .

@tomhoule tomhoule merged commit 12fdc7f into graphql-rust:master Sep 11, 2018
@mathstuf mathstuf deleted the improve-error-messages branch September 11, 2018 02:37
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