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
1 changed files with 2 additions and 2 deletions

View File

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