imag-store: use generate_error_module!() macro and reexport generated types
This commit is contained in:
parent
cc8642f54f
commit
6bc5099acc
1 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,10 @@
|
||||||
generate_error_imports!();
|
generate_error_module!(
|
||||||
|
|
||||||
generate_error_types!(StoreError, StoreErrorKind,
|
generate_error_types!(StoreError, StoreErrorKind,
|
||||||
BackendError => "Backend Error",
|
BackendError => "Backend Error",
|
||||||
NoCommandlineCall => "No commandline call"
|
NoCommandlineCall => "No commandline call"
|
||||||
);
|
);
|
||||||
|
);
|
||||||
|
|
||||||
|
pub use self::error::StoreError;
|
||||||
|
pub use self::error::StoreErrorKind;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue