postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.89k stars 250 forks source link

Print an error if an unknown ruby is given #450

Closed postmodern closed 1 year ago

postmodern commented 1 year ago

Description

If you call ruby-install with an unknown ruby, it will try to download a versions.txt file for it instead of printing an error. Related to discussion #449.

Steps To Reproduce

ruby-install foo

Expected Behavior

Unknown ruby foo

Actual Behavior

>>> Updating foo versions ...                           
!!! Failed to download https://raw.githubusercontent.com/postmodern/ruby-versions/master/foo/versions.txt to /home/postmodern/.cache/ruby-install/foo/versions.txt!
!!! Failed to download foo versions!