projects
/
evpf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6453f7
)
Minor error handling fixed
master
author
Harishankar
<v.harishankar@gmail.com>
Fri, 19 Jun 2020 17:21:05 +0000
(22:51 +0530)
committer
Harishankar
<v.harishankar@gmail.com>
Fri, 19 Jun 2020 17:21:05 +0000
(22:51 +0530)
Added minor error handling for history save file
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index
d44387c
..
51ea94e
100644
(file)
--- 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);
}
if rl.save_history (&hist_file.unwrap()).is_err () {
eprintln! ("{}", SAVE_HISTORY_ERROR);
}
- }
+ } else {
+ eprintln! ("{}", &hist_file.unwrap_err());
+ }
}
fn main() {
}
fn main() {