JacobEvelyn / friends

Spend time with the people you care about. Introvert-tested. Extrovert-approved.
MIT License
872 stars 39 forks source link

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

Closed m-t-a-n-a-k-a closed 4 years ago

m-t-a-n-a-k-a commented 4 years ago

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 commented 4 years ago

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

JacobEvelyn commented 4 years ago

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