Skip to content

Commit 5e9510c

Browse files
committed
feat(cli/rustup-mode)!: simplify error message for rustup show active-toolchain
1 parent 1b01e8b commit 5e9510c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli/rustup_mode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ fn show_active_toolchain(cfg: &Cfg<'_>, verbose: bool) -> Result<utils::ExitCode
10961096
)?;
10971097
}
10981098
}
1099-
None => return Err(anyhow!("there isn't an active toolchain")),
1099+
None => return Err(anyhow!("no active toolchain")),
11001100
}
11011101
Ok(utils::ExitCode(0))
11021102
}

tests/suite/cli_rustup.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ async fn show_active_toolchain_none() {
12861286
.expect_err_ex(
12871287
&["rustup", "show", "active-toolchain"],
12881288
"",
1289-
"error: there isn't an active toolchain\n",
1289+
"error: no active toolchain\n",
12901290
)
12911291
.await;
12921292
}
@@ -2361,7 +2361,7 @@ async fn override_order() {
23612361
.expect_err_ex(
23622362
&["rustup", "show", "active-toolchain"],
23632363
"",
2364-
"error: there isn't an active toolchain\n",
2364+
"error: no active toolchain\n",
23652365
)
23662366
.await;
23672367

0 commit comments

Comments
 (0)