Ver Fonte

Only display stacktraces in a window on Windows platform (#772)

Jan Stolarek há 5 anos atrás
pai
commit
92b22d9c93
1 ficheiros alterados com 5 adições e 1 exclusões
  1. 5 1
      hxd/System.hl.hx

+ 5 - 1
hxd/System.hl.hx

@@ -158,7 +158,11 @@ class System {
 		#if usesys
 		#if usesys
 		haxe.System.reportError(err + stack);
 		haxe.System.reportError(err + stack);
 		#else
 		#else
-		Sys.println(err + stack);
+		Sys.stderr().writeString(err + stack + "\n");
+
+		if ( Sys.systemName() != 'Windows' )
+			return;
+
 		if( dismissErrors )
 		if( dismissErrors )
 			return;
 			return;