diff --git a/src/main.rs b/src/main.rs index 13ad09e..bc5afc2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,18 +80,18 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result return Err("This line should be config !"), + None => return Err("This line should be the config !"), Some(raw) => raw, }; if a.is_empty() { - return Err("The config line should be empty !"); + return Err("Thi line should not be empty !"); } let b = match lines.next() { - None => return Err("This line should be instruction !"), + None => return Err("This line should be the instruction !"), Some(raw) => raw, }; if b.is_empty() { - return Err("The instruction line should be empty !"); + return Err("Thi line should not be empty !"); } println!("{}", a); println!("{}", b);