Sfoglia il codice sorgente

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

Jan Stolarek 5 anni fa
parent
commit
92b22d9c93
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      hxd/System.hl.hx

+ 5 - 1
hxd/System.hl.hx

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