#[error("Can't find version in dotfiles. Please provide a version manually to the command.")]
},
#[snafu(display(
"Can't find version in dotfiles. Please provide a version manually to the command."
))]
CantInferVersion,
CantInferVersion,
#[snafu(display("Requested version {} is not currently installed", version))]
#[error("Requested version {} is not currently installed", version)]
VersionNotFound{
VersionNotFound{version: UserVersion},
version: UserVersion,
#[error(transparent)]
},
ApplicableVersionError{
ApplicableVersionError{
#[from]
source: UserInputError,
source: UserInputError,
},
},
#[snafu(display(
#[error("Can't read exit code from process.\nMaybe the process was killed using a signal?")]
"Can't read exit code from process.\nMaybe the process was killed using a signal?"
))]
CantReadProcessExitCode,
CantReadProcessExitCode,
#[snafu(display("command not provided. Please provide a command to run as an argument, like {} or {}.\n{} {}", "node".italic(), "bash".italic(), "example:".yellow().bold(), "fnm exec --using=12 node --version".italic().yellow()))]
#[error("command not provided. Please provide a command to run as an argument, like {} or {}.\n{} {}", "node".italic(), "bash".italic(), "example:".yellow().bold(), "fnm exec --using=12 node --version".italic().yellow())]
#[error("Can't find version in dotfiles. Please provide a version manually to the command.")]
"Can't find version in dotfiles. Please provide a version manually to the command."
))]
CantInferVersion,
CantInferVersion,
#[snafu(display("Can't uninstall system version"))]
#[error("Can't uninstall system version")]
CantUninstallSystemVersion,
CantUninstallSystemVersion,
#[snafu(display("Too many versions had matched, please be more specific.\nFound {} matching versions, expected 1:\n{}", matched_versions.len(), matched_versions.iter().map(|v| format!("* {}", v)).collect::<Vec<_>>().join("\n")))]
#[error("Too many versions had matched, please be more specific.\nFound {} matching versions, expected 1:\n{}", matched_versions.len(), matched_versions.iter().map(|v| format!("* {}", v)).collect::<Vec<_>>().join("\n"))]
#[error("Can't find version in dotfiles. Please provide a version manually to the command.")]
"Can't find version in dotfiles. Please provide a version manually to the command."
))]
Local,
Local,
#[snafu(display("Could not find any version to use. Maybe you don't have a default version set?\nTry running `fnm default <VERSION>` to set one,\nor create a .node-version file inside your project to declare a Node.js version."))]
#[error("Could not find any version to use. Maybe you don't have a default version set?\nTry running `fnm default <VERSION>` to set one,\nor create a .node-version file inside your project to declare a Node.js version.")]