From f5dcdfff1b52a819adb4354960213d7472978c7f Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 14 Jun 2018 16:21:16 +0200 Subject: add support for reading zipped logs --- src/raw/parser.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/raw/parser.rs') diff --git a/src/raw/parser.rs b/src/raw/parser.rs index 8e931a2..97c0bc7 100644 --- a/src/raw/parser.rs +++ b/src/raw/parser.rs @@ -117,11 +117,17 @@ quick_error! { MalformedHeader { description("malformed header") } + InvalidZip(err: ::zip::result::ZipError) { + from() + description("zip error") + display("Archive error: {}", err) + cause(err) + } } } /// A type indicating the parse result. -type ParseResult = Result; +pub type ParseResult = Result; /// Parse the header of an evtc file. /// -- cgit v1.2.3