diff --git a/imag-link/src/main.rs b/imag-link/src/main.rs index bfaa239d..6f686683 100644 --- a/imag-link/src/main.rs +++ b/imag-link/src/main.rs @@ -213,16 +213,14 @@ fn get_entry_by_name<'a>(rt: &'a Runtime, name: &str) -> Result trace_error_exit(&e, 1), + Ok(None) => { + warn!("Entry not found: {:?}", entry_name); + return; + }, + Ok(Some(entry)) => entry + }; if scmd.is_present("add") { debug!("Adding link to entry!");