浏览代码

Generate native Java exception message

杨博 (Yang Bo) 10 年之前
父节点
当前提交
8c3d6106f9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      std/java/internal/Exceptions.hx

+ 2 - 2
std/java/internal/Exceptions.hx

@@ -82,9 +82,9 @@ class Exceptions {
 		else if (Std.is(obj, String))
 			ret = new HaxeException(obj, obj, null);
  		else if (Std.is(obj, Throwable))
-			ret = new HaxeException(obj, null, obj);
+			ret = new HaxeException(obj, Std.string(obj), obj);
 		else
-			ret = new HaxeException(obj, null, null);
+			ret = new HaxeException(obj, Std.string(obj), null);
 		return ret;
 	}
 }