Преглед изворни кода

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;
 	}
 }