Remove tile processing and add error handling
I removed the code that checked the tile attributes. Because I would rather later on PR something that works than a half-baked solution.
This commit is contained in:
1 parent
35ea719d9e
commit
cb900819d9
2 files changed
+15
-12
No files matched your search
@@ -50,6 +50,7 @@ pub enum TiffFormatError {
|
||||
SignedIntegerExpected(Value),
|
||||
InflateError(InflateError),
|
||||
Format(String),
|
||||
RequiredTagEmpty(Tag),
|
||||
#[doc(hidden)]
|
||||
/// Do not match against this variant. It may get removed.
|
||||
__NonExhaustive,
|
||||
@@ -84,6 +85,9 @@ impl fmt::Display for TiffFormatError {
|
||||
Format(ref val) => {
|
||||
write!(fmt, "Invalid format: {:?}.", val)
|
||||
}
|
||||
RequiredTagEmpty(ref val) => {
|
||||
write!(fmt, "Required tag {:?} was empty.", val)
|
||||
}
|
||||
__NonExhaustive => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user