浏览代码

LightProbeFactory: improve a misleading exception in getDebugGui()

Stephen Gold 4 年之前
父节点
当前提交
3beca2b4ee
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      jme3-core/src/main/java/com/jme3/environment/LightProbeFactory.java

+ 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");