Fix: Make error message more explanatory
This commit is contained in:
parent
4568b1f625
commit
e29bbdb98d
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ fn main() {
|
||||||
.into_get_iter(rt.store())
|
.into_get_iter(rt.store())
|
||||||
.map(|e| {
|
.map(|e| {
|
||||||
e.map_err_trace_exit_unwrap(1)
|
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(StoreError::from)
|
||||||
.map_err_trace_exit_unwrap(1)
|
.map_err_trace_exit_unwrap(1)
|
||||||
})
|
})
|
||||||
|
@ -177,7 +177,7 @@ fn main() {
|
||||||
.into_get_iter(rt.store())
|
.into_get_iter(rt.store())
|
||||||
.map(|e| {
|
.map(|e| {
|
||||||
e.map_err_trace_exit_unwrap(1)
|
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(StoreError::from)
|
||||||
.map_err_trace_exit_unwrap(1)
|
.map_err_trace_exit_unwrap(1)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue