Parcourir la source

rethrow the error if getchar doesn't work

frabbit il y a 11 ans
Parent
commit
495c015e23
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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":