diff options
Diffstat (limited to 'src/zip/error.rs')
| -rw-r--r-- | src/zip/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zip/error.rs b/src/zip/error.rs index d82de78..3acbf8c 100644 --- a/src/zip/error.rs +++ b/src/zip/error.rs | |||
| @@ -20,6 +20,7 @@ pub enum ZipError { | |||
| 20 | InvalidFileComment, | 20 | InvalidFileComment, |
| 21 | 21 | ||
| 22 | NegativeFileOffset, | 22 | NegativeFileOffset, |
| 23 | FileNotFound, | ||
| 23 | } | 24 | } |
| 24 | 25 | ||
| 25 | impl From<ZipError> for ArchiveError<ZipError> { | 26 | impl From<ZipError> for ArchiveError<ZipError> { |
| @@ -57,6 +58,7 @@ impl Display for ZipError { | |||
| 57 | Self::InvalidFileComment => write!(f, "Invalid file comment"), | 58 | Self::InvalidFileComment => write!(f, "Invalid file comment"), |
| 58 | 59 | ||
| 59 | Self::NegativeFileOffset => write!(f, "Negative file offset"), | 60 | Self::NegativeFileOffset => write!(f, "Negative file offset"), |
| 61 | Self::FileNotFound => write!(f, "File not found"), | ||
| 60 | } | 62 | } |
| 61 | } | 63 | } |
| 62 | } | 64 | } |
