Browse Source

Replace error message with a more useful one (#544)

remotes/origin/add-with-shims
Jonathan Fraimorice 3 years ago committed by GitHub
parent
commit
fa72f0c44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/commands/use.rs

4
src/commands/use.rs

@ -157,7 +157,7 @@ fn warn_if_multishell_path_not_in_path_env_var(
"{} {}\n{}\n{}", "{} {}\n{}\n{}",
"warning:".yellow().bold(), "warning:".yellow().bold(),
"The current Node.js path is not on your PATH environment variable.".yellow(), "The current Node.js path is not on your PATH environment variable.".yellow(),
"Have you set up your shell profile to evaluate `fnm env`?".yellow(), "You should setup your shell profile to evaluate `fnm env`, see https://github.com/Schniz/fnm#shell-setup on how to do this".yellow(),
"Check out our documentation for more information: https://fnm.vercel.app".yellow() "Check out our documentation for more information: https://fnm.vercel.app".yellow()
); );
} }
@ -179,7 +179,7 @@ pub enum Error {
#[snafu(display( #[snafu(display(
"{}\n{}\n{}", "{}\n{}\n{}",
"We can't find the necessary environment variables to replace the Node version.", "We can't find the necessary environment variables to replace the Node version.",
"Have you set up your shell profile to evaluate `fnm env`?", "You should setup your shell profile to evaluate `fnm env`, see https://github.com/Schniz/fnm#shell-setup on how to do this",
"Check out our documentation for more information: https://fnm.vercel.app" "Check out our documentation for more information: https://fnm.vercel.app"
))] ))]
FnmEnvWasNotSourced, FnmEnvWasNotSourced,

Loading…
Cancel
Save