diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-06-15 22:07:13 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-06-15 22:07:13 +0200 |
commit | eb682d76e8749194658336169c36fe774c939b49 (patch) | |
tree | aed89ae4bb01c007bbf5e9df6ffbe328151eee02 /bin | |
parent | c8da09f687c83bd6ec920d242c74917f2720a36b (diff) |
Prettify error messages
Diffstat (limited to 'bin')
-rw-r--r-- | bin/domain/imag-bookmark/src/main.rs | 6 |
1 files 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 |