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

Error message formating #209

Open
blzaugg opened this issue Sep 22, 2017 · 1 comment
Open

Error message formating #209

blzaugg opened this issue Sep 22, 2017 · 1 comment

Comments

@blzaugg
Copy link
Contributor

blzaugg commented Sep 22, 2017

For this line: https://github.com/marcelklehr/nodist/blob/4f7164b115f8951c98074ba89208dbe0e9511c5f/src/shim-npm.go#L41

I got an error as:

Sorry, there's a problem with nodist. Couldn't resolve node version spec %s: %s nodev0.12.0 
Unexpected character in constraint nodev0.12.0: node

I would have expected something like this instead:

Sorry, there's a problem with nodist. Couldn't resolve node version spec nodev0.12.0: 
Unexpected character in constraint 

I assume the %s are not being replace as expected.

@blzaugg
Copy link
Contributor Author

blzaugg commented Sep 22, 2017

Side note, this error wasn't clear, that it was my version spec located in my .node-version file that was causing the issue.

What I had (from an old nodist version):

nodev0.12.0

What I should have had:

0.12.0

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

1 participant