imag-store: use generate_error_module!() macro and reexport generated types

This commit is contained in:
Matthias Beyer 2016-05-19 17:11:18 +02:00
parent cc8642f54f
commit 6bc5099acc

View file

@ -1,7 +1,10 @@
generate_error_imports!();
generate_error_types!(StoreError, StoreErrorKind,
BackendError => "Backend Error",
NoCommandlineCall => "No commandline call"
generate_error_module!(
generate_error_types!(StoreError, StoreErrorKind,
BackendError => "Backend Error",
NoCommandlineCall => "No commandline call"
);
);
pub use self::error::StoreError;
pub use self::error::StoreErrorKind;