diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -213,8 +213,16 @@ impl S3G { // File scanning let mut file_string = String::new(); + + let string = match fs::read_to_string(&path) { + Ok(n) => n, + Err(_) => { + println!("Could not read file at: \"{}\", Continuing", &path.to_str().unwrap()); + String::from("") + } + }; - for line in fs::read_to_string(&path).unwrap().lines() { + for line in string.lines() { // NEED TO FOR LOOP ON COMMANDS AND FILES PREFIXES if line.contains(":?") { |