summaryrefslogtreecommitdiffstats
path: root/lib/entry/libimagentryview/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-05-30 10:04:56 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-05-30 11:12:43 +0200
commit11955f699f65580bb597cd29d652f63696b7d22c (patch)
treee5bb31611dbe70b49b37d75a422d6e34e18bc3e0 /lib/entry/libimagentryview/src/lib.rs
parentcee7689e77e14e55fb624149cdefe1fe0e1f4e1a (diff)
Change interface of Viewer to propagate io errors
Because we need to catch errors that are caused by a borken pipe when writing to stdout (for example), this patch changes the interface of the Viewer trait to return an error enum that can be used to check whether an IO error happened. The calling code can then decide whether to ignore a broken pipe error or whether to handle it properly. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry/libimagentryview/src/lib.rs')
-rw-r--r--lib/entry/libimagentryview/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/entry/libimagentryview/src/lib.rs b/lib/entry/libimagentryview/src/lib.rs
index 7fc15382..e3459b7c 100644
--- a/lib/entry/libimagentryview/src/lib.rs
+++ b/lib/entry/libimagentryview/src/lib.rs
@@ -56,5 +56,6 @@ extern crate libimagerror;
extern crate libimagentryedit;
pub mod builtin;
+pub mod error;
pub mod viewer;