Prettify error messages
This commit is contained in:
parent
c8da09f687
commit
eb682d76e8
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue