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

undefined method error occurred when "remove tag" is executed with no arguments #262

Closed
m-t-a-n-a-k-a opened this issue May 25, 2020 · 2 comments · Fixed by #263
Closed
Labels

Comments

@m-t-a-n-a-k-a
Copy link
Contributor

VERSION
0.51(ruby 2.6.0)

SUMMARY
When "remove tag" is executed with no arguments, the following error messages are output.

$friends remove tag
Error: undefined method `strip' for nil:NilClass

When "remove nickname”, the error messages are as below.

$friends remove nickname
Error: No friend found for ""

I think it would be better to output "Error: No friend found for" message in the case of "remove tag" as well. 👍

@JacobEvelyn
Copy link
Owner

Great catch! Thank you for finding this (and sorry for the slow response)! ❤️

JacobEvelyn pushed a commit that referenced this issue Jun 3, 2020
* Fix convert_to_tag for the case of str is nil

* Changing str ||= to str.to_s.strip and related test

Closes #262
@JacobEvelyn JacobEvelyn added the bug label Jun 3, 2020
@JacobEvelyn
Copy link
Owner

Thanks so much for fixing this, @m-t-a-n-a-k-a! Your fix is now released in version 0.52! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants