Improve unexpected tile count error
Do we even want to error early here? This isn't exactly fatal to reading the image it is a only nuisance. It becomes crucial only when we are at the point of reading all the tiles themselves.
This commit is contained in:
1 parent
701fcc46b8
commit
45cd3c3b63
2 files changed
+34
-9
No files matched your search
@@ -70,6 +70,9 @@ quick_error! {
|
||||
InconsistentSizesEncountered {
|
||||
display("inconsistent sizes encountered")
|
||||
}
|
||||
IncorrectChunkCount {expected: u32, found: u32} {
|
||||
display("incorrect number of chunk offsets encoded for the tile count of the image, expected {expected} but found {found}")
|
||||
}
|
||||
InvalidDimensions(width: u32, height: u32) {
|
||||
display("invalid dimensions: {width}x{height}")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user