Merge pull request #483 from matthiasbeyer/libimagrt/map_err

Replace error boxing and wrapping by helper generated with libimagerror
This commit is contained in:
Matthias Beyer 2016-06-27 19:53:31 +02:00 committed by GitHub
commit 80a198523a

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))
} }
/** /**