Merge pull request #1411 from matthiasbeyer/imag-view/fix-error-message
Fix: Make error message more explanatory
This commit is contained in:
commit
599f33d0b1
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