diff options
| author | fmoko <mokou@posteo.de> | 2020-11-07 13:53:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-07 13:53:35 +0100 |
| commit | a7ddd747ca2a1feac23f5de15065591f2ec7ec70 (patch) | |
| tree | f13df18834ac8024f56451558d97627fc019f93a | |
| parent | 68e646f8aa04b4297fe205472334132cdf001bbc (diff) | |
| parent | d61b4e5a13b44d72d004082f523fa1b6b24c1aca (diff) | |
Merge pull request #582 from seeplusplus/inotify-watch-error
fix: log error output when inotify limit is exceeded
| -rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index b5814bf..d0299e3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,7 +119,12 @@ fn main() { 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!( "{emoji} All exercises completed! {emoji}", emoji = Emoji("🎉", "★") |
