Fix: Make error message more explanatory

This commit is contained in:
Matthias Beyer 2018-04-18 17:41:34 +02:00
parent 4568b1f625
commit e29bbdb98d
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ fn main() {
.into_get_iter(rt.store())
.map(|e| {
e.map_err_trace_exit_unwrap(1)
.ok_or_else(|| String::from("BUG"))
.ok_or_else(|| String::from("Entry not found"))
.map_err(StoreError::from)
.map_err_trace_exit_unwrap(1)
})
@ -177,7 +177,7 @@ fn main() {
.into_get_iter(rt.store())
.map(|e| {
e.map_err_trace_exit_unwrap(1)
.ok_or_else(|| String::from("BUG"))
.ok_or_else(|| String::from("Entry not found"))
.map_err(StoreError::from)
.map_err_trace_exit_unwrap(1)
})