From 0dd5080d63adc89802ac3f14c76b79a5b8ef265a Mon Sep 17 00:00:00 2001 From: Martin HART Date: Thu, 29 Oct 2020 14:43:38 +0100 Subject: [PATCH] Change err msg --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);