2
0
Эх сурвалжийг харах

rethrow the error if getchar doesn't work

frabbit 11 жил өмнө
parent
commit
495c015e23

+ 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":