wayneeseguin/rvm — Issue #772: rvm exits shell on .rvmrc error
Author: jwhitley
Created: 2012-02-21 19:58:04+00:00
State: open

I ran into this after upgrading `1.9.3-p0` to `1.9.3-p125` on some existing .rvmrc's created via `rvm use --create ...`

### Repro steps

1. Create an .rvmrc for a ruby which is not installed.
2. cd to the directory with the test .rvmrc

### Expected result

rvm emits an error about the .rvmrc.

### Actual result

rvm emits an error and exits the shell:

```
ruby ruby-1.9.3-p0 is not installed.
To install do: 'rvm install ruby-1.9.3-p0'
Failed to create RVM environment 'ruby-1.9.3-p0@twr'.

[Process completed]
```

### Ideal result

rvm emits an error, notes that the ruby in question was upgraded, and offers to update the .rvmrc:

```
ruby ruby-1.9.3-p0 is not installed; it was upgraded to ruby-1.9.3-p125.
Would you like to update this .rvmrc to ruby-1.9.3-p125? (Y/n)
```