Replace error boxing and wrapping by helper generated with libimagerror
This commit is contained in:
parent
65911057bf
commit
c03fb00c20
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue