Replace error boxing and wrapping by helper generated with libimagerror

This commit is contained in:
Matthias Beyer 2016-06-27 18:23:54 +02:00
parent 65911057bf
commit c03fb00c20

View file

@ -13,6 +13,7 @@ use log::LogLevelFilter;
use configuration::Configuration; use configuration::Configuration;
use error::RuntimeError; use error::RuntimeError;
use error::RuntimeErrorKind; use error::RuntimeErrorKind;
use error::MapErrInto;
use logger::ImagLogger; use logger::ImagLogger;
use libimagstore::store::Store; use libimagstore::store::Store;
@ -134,8 +135,7 @@ impl<'a> Runtime<'a> {
store: store, store: store,
} }
}) })
.map_err(Box::new) .map_err_into(RuntimeErrorKind::Instantiate)
.map_err(|e| RuntimeErrorKind::Instantiate.into_error_with_cause(e))
} }
/** /**