Browse Source

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

Aleksandr Kuzmenko 5 years ago
parent
commit
852b2ba25c
1 changed files with 1 additions and 1 deletions
  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 {
 	static function exceptionToString(e:Exception):String {
 		if(e.previous == null) {
 		if(e.previous == null) {
-			return 'Exception: ${e.message}${e.stack}';
+			return 'Exception: ${e.toString()}${e.stack}';
 		}
 		}
 		var result = '';
 		var result = '';
 		var e:Null<Exception> = e;
 		var e:Null<Exception> = e;