From: Harishankar Date: Fri, 19 Jun 2020 17:21:05 +0000 (+0530) Subject: Minor error handling fixed X-Git-Url: https://harishankar.org/repos/?p=evpf.git;a=commitdiff_plain Minor error handling fixed Added minor error handling for history save file --- diff --git a/src/main.rs b/src/main.rs index d44387c..51ea94e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -254,7 +254,9 @@ fn run_interactive_mode (match_num : ®ex::Regex) { if rl.save_history (&hist_file.unwrap()).is_err () { eprintln! ("{}", SAVE_HISTORY_ERROR); } - } + } else { + eprintln! ("{}", &hist_file.unwrap_err()); + } } fn main() {