From e29bbdb98dd3c22c12c3ad908f4132f23663aed7 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 18 Apr 2018 17:41:34 +0200 Subject: [PATCH] Fix: Make error message more explanatory --- bin/core/imag-view/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/core/imag-view/src/main.rs b/bin/core/imag-view/src/main.rs index 69bbdb00..0e5b29b6 100644 --- a/bin/core/imag-view/src/main.rs +++ b/bin/core/imag-view/src/main.rs @@ -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) })