瀏覽代碼

[exceptions] use `exc.toString()` instead of a `exc.message` in `exc.details()`

Aleksandr Kuzmenko 5 年之前
父節點
當前提交
852b2ba25c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/haxe/CallStack.hx

+ 1 - 1
std/haxe/CallStack.hx

@@ -133,7 +133,7 @@ abstract CallStack(Array<StackItem>) from Array<StackItem> {
 
 	static function exceptionToString(e:Exception):String {
 		if(e.previous == null) {
-			return 'Exception: ${e.message}${e.stack}';
+			return 'Exception: ${e.toString()}${e.stack}';
 		}
 		var result = '';
 		var e:Null<Exception> = e;