diff --git a/libimagentrytag/src/error.rs b/libimagentrytag/src/error.rs index 0e8aa3e7..45895019 100644 --- a/libimagentrytag/src/error.rs +++ b/libimagentrytag/src/error.rs @@ -1,9 +1,12 @@ -generate_error_imports!(); - -generate_error_types!(TagError, TagErrorKind, - TagTypeError => "Entry Header Tag Type wrong", - HeaderReadError => "Error while reading entry header", - HeaderWriteError => "Error while writing entry header", - NotATag => "String is not a tag" +generate_error_module!( + generate_error_types!(TagError, TagErrorKind, + TagTypeError => "Entry Header Tag Type wrong", + HeaderReadError => "Error while reading entry header", + HeaderWriteError => "Error while writing entry header", + NotATag => "String is not a tag" + ); ); +pub use self::error::TagError; +pub use self::error::TagErrorKind; +