Skip to content

Commit bf790dd

Browse files
committed
Error when trying to build with stable
1 parent add53b2 commit bf790dd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,10 @@ fn build(args: cli::Args, command_name: &str) -> Result<(ExitStatus)> {
161161
sysroot.src()?
162162
},
163163
Channel::Stable | Channel::Beta => {
164-
writeln!(
165-
io::stderr(),
166-
"WARNING: the sysroot can't be built for the {:?} channel. \
164+
bail!(
165+
"The sysroot can't be built for the {:?} channel. \
167166
Switch to nightly.",
168-
meta.channel
169-
).ok();
170-
return cargo::run(&args, verbose);
167+
meta.channel);
171168
}
172169
};
173170

0 commit comments

Comments
 (0)