libimagentrylist: use generate_error_module!() macro and reexport generated types
This commit is contained in:
parent
cf393b4bde
commit
698c219e04
1 changed files with 10 additions and 7 deletions
|
@ -1,9 +1,12 @@
|
|||
generate_error_imports!();
|
||||
|
||||
generate_error_types!(ListError, ListErrorKind,
|
||||
generate_error_module!(
|
||||
generate_error_types!(ListError, ListErrorKind,
|
||||
FormatError => "FormatError",
|
||||
EntryError => "EntryError",
|
||||
IterationError => "IterationError",
|
||||
CLIError => "No CLI subcommand for listing entries"
|
||||
);
|
||||
);
|
||||
|
||||
pub use self::error::ListError;
|
||||
pub use self::error::ListErrorKind;
|
||||
|
||||
|
|
Loading…
Reference in a new issue