Browse Source

Improve "version not found" error message (#413)

remotes/origin/add-with-shims
Waldir Pimenta 4 years ago committed by GitHub
parent
commit
6bd3ab9813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/commands/use.rs

2
src/commands/use.rs

@ -113,7 +113,7 @@ fn should_install_interactively(requested_version: &UserVersion) -> bool {
use std::io::Write; use std::io::Write;
let error_message = format!( let error_message = format!(
"Can't find version that matches {}.", "Can't find an installed Node version matching {}.",
requested_version.to_string().italic() requested_version.to_string().italic()
); );
eprintln!("{}", error_message.red()); eprintln!("{}", error_message.red());

Loading…
Cancel
Save