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

Exit 125 when ~/.fnm/node-versions does not exist #11

Closed
taylor1791 opened this issue Jan 25, 2019 · 1 comment
Closed

Exit 125 when ~/.fnm/node-versions does not exist #11

taylor1791 opened this issue Jan 25, 2019 · 1 comment

Comments

@taylor1791
Copy link

If you run fnm ls before installing any versions, you get an error since ~/.fnm/node-versions has not been created.

$ fnm ls
fnm: internal error, uncaught exception:
     (Failure "/Users/xxx/.fnm/node-versions: No such file or directory")
     Raised at file "executable/ListLocal.re", line 6, characters 6-554
     Re-raised at file "src/core/lwt.ml", line 2987, characters 20-29
     Called from file "src/unix/lwt_main.ml", line 26, characters 8-18
     Called from file "cmdliner_term.ml", line 25, characters 19-24
     Called from file "cmdliner.ml", line 116, characters 32-39
$ echo $?
125
@Schniz
Copy link
Owner

Schniz commented Jan 26, 2019

Hey! thanks for the bug report and sorry about that - you're right - we can actually print "nothing is here" or just exit

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

No branches or pull requests

2 participants