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

Issue#2067 Replace NotImplementedError with RequiredImplementationMissingError #2543

Merged

Conversation

vaihtovirta
Copy link
Contributor

Fixes #2067

Copy link
Owner

@rmosolgo rmosolgo left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks for taking it on! 🤘

@@ -66,7 +66,7 @@ def initialize_copy(other)

# @return [Symbol] the method to call on {Language::Visitor} for this node
def visit_method
raise NotImplementedError, "#{self.class.name}#visit_method shold return a symbol"
raise GraphQL::RequiredImplementationMissingError, "#{self.class.name}#visit_method shold return a symbol"
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
raise GraphQL::RequiredImplementationMissingError, "#{self.class.name}#visit_method shold return a symbol"
raise GraphQL::RequiredImplementationMissingError, "#{self.class.name}#visit_method should return a symbol"

Unrelated to your change, but I couldn't help noticing it! 🙈

Copy link
Owner

Choose a reason for hiding this comment

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

Nevermind, I thought I could commit changes from the comment, but it's not working 🤷‍♂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I didn't notice this typo 🤦‍♂
I can prepare a fix for that as well 😄

@rmosolgo rmosolgo merged commit 35dc19b into rmosolgo:master Oct 15, 2019
@vaihtovirta vaihtovirta deleted the issue-2067/replace-not-implemented-error branch October 16, 2019 09:17
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.

Change NotImplementedError to something else
2 participants