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

Support the change of did_you_mean about Exception#detailed_message #5560

Merged
merged 1 commit into from May 23, 2022

Conversation

mame
Copy link
Contributor

@mame mame commented May 23, 2022

I am asking did_you_mean to use Exception#detailed_message to add
"Did you mean?" suggestion instead of overriding #message method.

ruby/did_you_mean#177

Unfortunately, the change will affect Gem::UnknownCommandError, which
excepts did_you_mean to override #message method.

This PR absorbs the change of did_you_mean.
Gem::CommandManager now calls #detailed_message method to get a message
string with "Did you mean?" suggestion from an exception.

What was the end-user or developer problem that led to this PR?

What is your fix for the problem, implemented in this PR?

Make sure the following tasks are checked

I am asking did_you_mean to use Exception#detailed_message to add
"Did you mean?" suggestion instead of overriding #message method.

ruby/did_you_mean#177

Unfortunately, the change will affect Gem::UnknownCommandError, which
excepts did_you_mean to override #message method.

This PR absorbs the change of did_you_mean.
Gem::CommandManager now calls #detailed_message method to get a message
string with "Did you mean?" suggestion from an exception.
@hsbt hsbt enabled auto-merge May 23, 2022 10:16
@hsbt hsbt merged commit 20e9b96 into rubygems:master May 23, 2022
@deivid-rodriguez deivid-rodriguez changed the title Support the change of did_you_mean about Exception#detailed_message Support the change of did_you_mean about Exception#detailed_message May 23, 2022
deivid-rodriguez pushed a commit that referenced this pull request Jun 1, 2022
Support the change of did_you_mean about Exception#detailed_message

(cherry picked from commit 20e9b96)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants