Merge pull request #1411 from matthiasbeyer/imag-view/fix-error-message

Fix: Make error message more explanatory
This commit is contained in:
Matthias Beyer 2018-04-18 18:26:55 +02:00 committed by GitHub
commit 599f33d0b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}) })