Change error kind

This commit is contained in:
Jonathan Behrens committed 2022-09-05 12:45:22 -07:00
1 parent 945a02d1e1
commit fc0dafcde2
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -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),
));
}