Skip to content

Commit

Permalink
feat(cli/rustup-mode)!: simplify error message for `rustup show activ…
Browse files Browse the repository at this point in the history
…e-toolchain`
  • Loading branch information
rami3l committed Jan 6, 2025
1 parent ba1eff9 commit 84adf47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ fn show_active_toolchain(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode
)?;
}
}
None => return Err(anyhow!("there isn't an active toolchain")),
None => return Err(anyhow!("no active toolchain")),
}
Ok(utils::ExitCode(0))
}
Expand Down
4 changes: 2 additions & 2 deletions tests/suite/cli_rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ async fn show_active_toolchain_none() {
.expect_err_ex(
&["rustup", "show", "active-toolchain"],
"",
"error: there isn't an active toolchain\n",
"error: no active toolchain\n",
)
.await;
}
Expand Down Expand Up @@ -2361,7 +2361,7 @@ async fn override_order() {
.expect_err_ex(
&["rustup", "show", "active-toolchain"],
"",
"error: there isn't an active toolchain\n",
"error: no active toolchain\n",
)
.await;

Expand Down

0 comments on commit 84adf47

Please sign in to comment.