#439: Unclear exception message when passing image metadata as stream metadata

(cherry picked from commit 6018093)
This commit is contained in:
Harald Kuhr
2018-08-30 14:46:55 +02:00
parent 83adf121e2
commit 3b68d676f3
3 changed files with 31 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ public abstract class AbstractMetadata extends IIOMetadata implements Cloneable
}
throw new IllegalArgumentException(
String.format("Bad format name: \"%s\". Expected one of %s", formatName, Arrays.toString(metadataFormatNames))
String.format("Unsupported format name: \"%s\". Expected one of %s", formatName, Arrays.toString(metadataFormatNames))
);
}