imag-view: 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 6bc5099acc
commit 537fe88e13

View file

@ -1,9 +1,12 @@
generate_error_imports!();
generate_error_types!(ViewError, ViewErrorKind,
StoreError => "Store error",
NoVersion => "No version specified",
PatternError => "Error in Pattern",
GlobBuildError => "Could not build glob() Argument"
generate_error_module!(
generate_error_types!(ViewError, ViewErrorKind,
StoreError => "Store error",
NoVersion => "No version specified",
PatternError => "Error in Pattern",
GlobBuildError => "Could not build glob() Argument"
);
);
pub use self::error::ViewError;
pub use self::error::ViewErrorKind;