From eb682d76e8749194658336169c36fe774c939b49 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 15 Jun 2018 22:07:13 +0200 Subject: [PATCH] Prettify error messages --- bin/domain/imag-bookmark/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/domain/imag-bookmark/src/main.rs b/bin/domain/imag-bookmark/src/main.rs index 3438ee78..2741e898 100644 --- a/bin/domain/imag-bookmark/src/main.rs +++ b/bin/domain/imag-bookmark/src/main.rs @@ -94,7 +94,7 @@ fn add(rt: &Runtime) { let mut collection = BookmarkCollectionStore::get(rt.store(), &coll) .map_err_trace_exit_unwrap(1) - .ok_or(BE::from(format!("No BookmarkcollectionStore '{}' found", coll))) + .ok_or(BE::from(format!("No bookmark collection '{}' found", coll))) .map_err_trace_exit_unwrap(1); for url in scmd.values_of("urls").unwrap() { // unwrap saved by clap @@ -135,7 +135,7 @@ fn list(rt: &Runtime) { let collection = BookmarkCollectionStore::get(rt.store(), &coll) .map_err_trace_exit_unwrap(1) - .ok_or(BE::from(format!("No BookmarkcollectionStore '{}' found", coll))) + .ok_or(BE::from(format!("No bookmark collection '{}' found", coll))) .map_err_trace_exit_unwrap(1); let links = collection.links(rt.store()).map_err_trace_exit_unwrap(1); @@ -157,7 +157,7 @@ fn remove(rt: &Runtime) { let mut collection = BookmarkCollectionStore::get(rt.store(), &coll) .map_err_trace_exit_unwrap(1) - .ok_or(BE::from(format!("No BookmarkcollectionStore '{}' found", coll))) + .ok_or(BE::from(format!("No bookmark collection '{}' found", coll))) .map_err_trace_exit_unwrap(1); for url in scmd.values_of("urls").unwrap() { // enforced by clap