summaryrefslogtreecommitdiffstats
path: root/bin/core/imag-mv/src/main.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-02-03 19:53:50 +0100
committerMatthias Beyer <mail@beyermatthias.de>2019-02-11 03:22:56 +0100
commitf1a639ea8ca400db5de0864d76a8c2f374bc2bb4 (patch)
treebc0830fb6c00551b0e4e076e5c302e8438fde4e1 /bin/core/imag-mv/src/main.rs
parent19912f5e88bf0c0f1a1c521f6f5109ee6fac8cff (diff)
downloadimag-f1a639ea8ca400db5de0864d76a8c2f374bc2bb4.tar.gz
imag-f1a639ea8ca400db5de0864d76a8c2f374bc2bb4.tar.xz
Diffstat (limited to 'bin/core/imag-mv/src/main.rs')
-rw-r--r--bin/core/imag-mv/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/core/imag-mv/src/main.rs b/bin/core/imag-mv/src/main.rs
index d0611210..118f609e 100644
--- a/bin/core/imag-mv/src/main.rs
+++ b/bin/core/imag-mv/src/main.rs
@@ -52,6 +52,7 @@ use std::path::PathBuf;
use libimagrt::setup::generate_runtime_setup;
use libimagerror::trace::MapErrTrace;
use libimagerror::iter::TraceIterator;
+use libimagerror::exit::ExitUnwrap;
use libimagstore::storeid::StoreId;
use libimagstore::store::Store;
use libimagstore::store::FileLockEntry;
@@ -131,8 +132,7 @@ fn main() {
})
.map_err_trace_exit_unwrap(1);
- let _ = rt.report_touched(&destname)
- .map_err_trace_exit_unwrap(1);
+ let _ = rt.report_touched(&destname).unwrap_or_exit();
// re-add links to moved entry
relink(rt.store(), destname, &mut linked_entries);