Add ID reporting in imag-ref

This commit is contained in:
Matthias Beyer 2018-11-02 10:57:42 +01:00
parent 502cdf5721
commit c616a5cfaf

View file

@ -88,7 +88,8 @@ fn deref(rt: &Runtime) {
.map_err_trace_exit_unwrap(1);
match rt.store().get(id.clone()).map_err_trace_exit_unwrap(1) {
Some(entry) => entry
Some(entry) => {
entry
.get_path()
.map_err_trace_exit_unwrap(1)
.to_str()
@ -97,7 +98,10 @@ fn deref(rt: &Runtime) {
exit(1)
})
.map(|s| info!("{}", s))
.ok(), // safe here because we exited already in the error case
.ok(); // safe here because we exited already in the error case
let _ = rt.report_touched(&id).map_err_trace_exit_unwrap(1);
},
None => {
error!("No entry for id '{}' found", id);
exit(1)