Răsfoiți Sursa

* Better error message in ImageToAwt.convert()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7437 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
Sha..om 14 ani în urmă
părinte
comite
a4e97bd2d5
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      engine/src/tools/jme3tools/converters/ImageToAwt.java

+ 1 - 1
engine/src/tools/jme3tools/converters/ImageToAwt.java

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