Bläddra i källkod

rethrow the error if getchar doesn't work

frabbit 11 år sedan
förälder
incheckning
495c015e23
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      std/python/_std/Sys.hx

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

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