소스 검색

Merge pull request #4244 from Atry/patch-6

Generate native Java exception message
Cauê Waneck 10 년 전
부모
커밋
02d472f71a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      std/java/internal/Exceptions.hx

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

@@ -91,9 +91,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;
 	}
 }