Change error kind
This commit is contained in:
1 parent
945a02d1e1
commit
fc0dafcde2
3 files changed
+4
-2
No files matched your search
+1
-1
@@ -352,7 +352,7 @@ impl<'a, W: 'a + Write + Seek, T: ColorType, K: TiffKind, D: Compression>
|
||||
) -> TiffResult<Self> {
|
||||
if width == 0 || height == 0 {
|
||||
return Err(TiffError::FormatError(
|
||||
TiffFormatError::InconsistentSizesEncountered,
|
||||
TiffFormatError::InvalidDimensions(width, height),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user