Error handling, I should make it better though

This commit is contained in:
2025-11-30 01:25:58 +00:00
parent aa4cf930b9
commit 173cf9085f
3 changed files with 78 additions and 74 deletions

View File

@@ -44,12 +44,12 @@ pub fn watch_files(file_list: &[PathBuf]) -> u8
Err(e) =>
{
println!("watch error: {:?}", e);
return 2
return 1
}
}
}
println!("Watching files...");
1
2
}
pub fn read_file(file_name: &str, depth: u8) ->