Jelajahi Sumber

LightProbeFactory: improve a misleading exception in getDebugGui()

Stephen Gold 4 tahun lalu
induk
melakukan
3beca2b4ee

+ 2 - 1
jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java

@@ -223,7 +223,8 @@ public class LightProbeFactory {
      */
     public static Node getDebugGui(AssetManager manager, LightProbe probe) {
         if (!probe.isReady()) {
-            throw new UnsupportedOperationException("This EnvProbe is not ready yet, try to test isReady()");
+            throw new IllegalStateException(
+                    "The LightProbe is not ready yet, please test isReady().");
         }
 
         Node debugNode = new Node("debug gui probe");