1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-05-24 05:06:06 +02:00

add a slightly more helpful error message

This commit is contained in:
liv 2019-04-22 18:43:39 +08:00
parent f2c48cfac5
commit 7eddee6f7a

View File

@ -55,6 +55,7 @@ fn main() {
"{} must be run from the rustlings directory",
std::env::current_exe().unwrap().to_str().unwrap()
);
println!("Try `cd rustlings/`!");
std::process::exit(1);
}