mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-04-25 00:00:03 -04:00
Update imageio/imageio-dds/src/main/java/com/twelvemonkeys/imageio/plugins/dds/DDSHeader.java
Improve Magic IIOException Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ public final class DDSHeader {
|
||||
byte[] magic = new byte[DDS.MAGIC.length];
|
||||
imageInput.readFully(magic);
|
||||
if (!Arrays.equals(DDS.MAGIC, magic)) {
|
||||
throw new IIOException("Unsupported MAGIC bytes.");
|
||||
throw new IIOException(String.format("Not a DDS file. Expected DDS magic %02x, read %02x", DDS.MAGIC, magic));
|
||||
}
|
||||
|
||||
// DDS_HEADER structure
|
||||
|
||||
Reference in New Issue
Block a user