mirror of
https://github.com/notohh/rustlings.git
synced 2024-10-30 16:59:12 -04:00
Merge pull request #582 from seeplusplus/inotify-watch-error
fix: log error output when inotify limit is exceeded
This commit is contained in:
commit
a7ddd747ca
1 changed files with 6 additions and 1 deletions
|
@ -119,7 +119,12 @@ fn main() {
|
||||||
verify(&exercises, verbose).unwrap_or_else(|_| std::process::exit(1));
|
verify(&exercises, verbose).unwrap_or_else(|_| std::process::exit(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if matches.subcommand_matches("watch").is_some() && watch(&exercises, verbose).is_ok() {
|
if matches.subcommand_matches("watch").is_some() {
|
||||||
|
if let Err(e) = watch(&exercises, verbose) {
|
||||||
|
println!("Error: Could not watch your progess. Error message was {:?}.", e);
|
||||||
|
println!("Most likely you've run out of disk space or your 'inotify limit' has been reached.");
|
||||||
|
std::process::exit(1);
|
||||||
|
}
|
||||||
println!(
|
println!(
|
||||||
"{emoji} All exercises completed! {emoji}",
|
"{emoji} All exercises completed! {emoji}",
|
||||||
emoji = Emoji("🎉", "★")
|
emoji = Emoji("🎉", "★")
|
||||||
|
|
Loading…
Reference in a new issue