If an error happens while viewing, trace it

This commit is contained in:
Matthias Beyer 2016-07-31 10:39:43 +02:00
parent c1d41c954e
commit 7187ad89b1

View file

@ -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");
} }
}, },