If an error happens while viewing, trace it
This commit is contained in:
parent
c1d41c954e
commit
7187ad89b1
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ pub fn view(rt: &Runtime) {
|
||||||
for entry in entries.into_iter().filter_map(Result::ok) {
|
for entry in entries.into_iter().filter_map(Result::ok) {
|
||||||
let id = entry.diary_id();
|
let id = entry.diary_id();
|
||||||
println!("{} :\n", id);
|
println!("{} :\n", id);
|
||||||
pv.view_entry(&entry);
|
if let Err(e) = pv.view_entry(&entry) {
|
||||||
|
trace_error(&e);
|
||||||
|
};
|
||||||
println!("\n---\n");
|
println!("\n---\n");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue