浏览代码

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

Jan Stolarek 5 年之前
父节点
当前提交
92b22d9c93
共有 1 个文件被更改,包括 5 次插入1 次删除
  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;