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

Reword ArgumentError message #367

Closed
wants to merge 1 commit into from

Conversation

Nerian
Copy link

@Nerian Nerian commented Jul 26, 2013

Change 'ArgumentError: wrong number of arguments (%d for %d)' to ArgumentError: wrong number of arguments (%d instead of %d).

This clarifies the meaning of the message without any room for doubt.

And looks like raises many doubts: http://stackoverflow.com/questions/7537450/what-does-wrong-number-of-arguments-1-for-0-mean-in-ruby

Personally, I did find the wording weird the first time I saw that error message and I had to google it to make sure I got it right. With this pull request, we leave no room for further doubt.

…mentError: wrong number of arguments (%d instead of %d).

It clarifies the message.
@vendethiel
Copy link

Agreed. Might break some tests tho?

@Nerian
Copy link
Author

Nerian commented Jul 26, 2013

Do you mean tests that assert the message? Yes, those would be broken. But it would be an easy – search and replace – fix.

@zzak
Copy link
Member

zzak commented Oct 15, 2013

Due to the backwards incompatible nature of this patch, I think it would be best top request a new feature in redmine.

@Nerian Could you move this to a feature request on http://bugs.ruby-lang.org/ and update/close this ticket when done?

Within a few days/weeks I can do this for you.

Thanks!

@Nerian
Copy link
Author

Nerian commented Oct 15, 2013

Sure thing. There it is: http://bugs.ruby-lang.org/issues/9025

@Nerian Nerian closed this Oct 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants