浏览代码

rethrow the error if getchar doesn't work

frabbit 11 年之前
父节点
当前提交
495c015e23
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      std/python/_std/Sys.hx

+ 1 - 2
std/python/_std/Sys.hx

@@ -87,9 +87,8 @@ class Sys {
 					restore();
 					ch;
 				} catch (e:Dynamic) {
-					trace("error" + e);
 					restore();
-					String.fromCharCode(0);
+					throw e;
 				}
 
 			case "win32" | "cygwin":