#[error("Can't find version in dotfiles. Please provide a version manually to the command.")]
CantInferVersion,
#[snafu(display("Requested version {} is not currently installed", version))]
VersionNotFound{
version: UserVersion,
},
#[error("Requested version {} is not currently installed", version)]
VersionNotFound{version: UserVersion},
#[error(transparent)]
ApplicableVersionError{
#[from]
source: UserInputError,
},
#[snafu(display(
"Can't read exit code from process.\nMaybe the process was killed using a signal?"
))]
#[error("Can't read exit code from process.\nMaybe the process was killed using a signal?")]
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())]
"Can't find version in dotfiles. Please provide a version manually to the command."
))]
#[error("Can't find version in dotfiles. Please provide a version manually to the command.")]
CantInferVersion,
#[snafu(display("Can't uninstall system version"))]
#[error("Can't uninstall system version")]
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"))]
"Can't find version in dotfiles. Please provide a version manually to the command."
))]
#[error("Can't find version in dotfiles. Please provide a version manually to the command.")]
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.")]