Change error kind
This commit is contained in:
1 parent
945a02d1e1
commit
fc0dafcde2
3 files changed
+4
-2
No files matched your search
@@ -99,7 +99,7 @@ impl Image {
|
||||
let height = tag_reader.require_tag(Tag::ImageLength)?.into_u32()?;
|
||||
if width == 0 || height == 0 {
|
||||
return Err(TiffError::FormatError(
|
||||
TiffFormatError::InconsistentSizesEncountered,
|
||||
TiffFormatError::InvalidDimensions(width, height),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user