浏览代码

Print the object with the problem in NativeObjectManager

Kirill Vainer 8 年之前
父节点
当前提交
7441865307
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java

+ 2 - 2
jme3-core/src/main/java/com/jme3/util/NativeObjectManager.java

@@ -133,8 +133,8 @@ public class NativeObjectManager {
                 // Unregister it from cleanup list.
                 NativeObjectRef ref2 = refMap.remove(obj.getUniqueId());
                 if (ref2 == null) {
-                    throw new IllegalArgumentException("This NativeObject is not " + 
-                                                       "registered in this NativeObjectManager");
+                    throw new IllegalArgumentException("The " + obj + " NativeObject is not "
+                            + "registered in this NativeObjectManager");
                 }
 
                 assert ref == null || ref == ref2;