ku1ik / rainbow

Ruby gem for colorizing printed text on ANSI terminals
MIT License
813 stars 68 forks source link

Handle invalid color names #30

Closed rrosenblum closed 8 years ago

rrosenblum commented 8 years ago

I was looking through the code and noticed and else that appears to have been intended to be an elsif. Both cases will raise an ArgumentError, but now the error message will contain all valid color names.

ku1ik commented 8 years ago

Nice catch, thanks!