* Better error message in ImageToAwt.convert()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7437 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
Sha..om 2011-05-04 15:47:16 +00:00
parent 5d4c279467
commit a4e97bd2d5

View File

@ -209,7 +209,7 @@ public class ImageToAwt {
public static void convert(BufferedImage image, Format format, ByteBuffer buf){ public static void convert(BufferedImage image, Format format, ByteBuffer buf){
DecodeParams p = params.get(format); DecodeParams p = params.get(format);
if (p == null) if (p == null)
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Image format " + format + " is not supported");
int width = image.getWidth(); int width = image.getWidth();
int height = image.getHeight(); int height = image.getHeight();