summaryrefslogtreecommitdiffstats
path: root/imag-bookmark
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-07-15 21:56:53 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-07-16 21:57:29 +0200
commit703788d9d24d59b67d3783a413d744d312e0e381 (patch)
tree5495a6c67bae7d9e03f8d002b6702ac9c548a036 /imag-bookmark
parent4a0997995139043a9f297bc42e0d782b7b0c588e (diff)
Replace trace_error() with trace_error_exit() where appropriate
Diffstat (limited to 'imag-bookmark')
-rw-r--r--imag-bookmark/src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/imag-bookmark/src/main.rs b/imag-bookmark/src/main.rs
index 2d003463..06490c24 100644
--- a/imag-bookmark/src/main.rs
+++ b/imag-bookmark/src/main.rs
@@ -17,7 +17,7 @@ use libimagrt::runtime::Runtime;
use libimagrt::setup::generate_runtime_setup;
use libimagbookmark::collection::BookmarkCollection;
use libimagbookmark::link::Link as BookmarkLink;
-use libimagerror::trace::trace_error;
+use libimagerror::trace::{trace_error, trace_error_exit};
mod ui;
@@ -96,10 +96,7 @@ fn list(rt: &Runtime) {
};
debug!("... ready with listing");
},
- Err(e) => {
- trace_error(&e);
- exit(1);
- },
+ Err(e) => trace_error_exit(&e, 1),
}
});
info!("Ready");