about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-27 09:06:17 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-27 09:06:17 -0700
commit5a26c015a4218f10316ecad7f9cb794d8f12f3d5 (patch)
tree51e0bdd22bc0c7bd612691cb2b88915a85e868c6
parent07b54625f79a3ab45d1e7997cc04f9a550019bb9 (diff)
downloadmu-5a26c015a4218f10316ecad7f9cb794d8f12f3d5.tar.gz
3597 - typo in screen checking
Thanks Ella Couch for reporting this.
-rw-r--r--080display.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/080display.cc b/080display.cc
index 6518c91c..7e95f8f0 100644
--- a/080display.cc
+++ b/080display.cc
@@ -13,17 +13,17 @@ bool Autodisplay = true;
 #define CHECK_SCREEN \
     if (!tb_is_active()) { \
       if (Run_tests) \
-        raise << maybe(current_recipe_name()) << "tried to print to real screen before 'open-console'\n" << end(); \
-      else \
         raise << maybe(current_recipe_name()) << "tried to print to real screen in a test!\n" << end(); \
+      else \
+        raise << maybe(current_recipe_name()) << "tried to print to real screen before 'open-console' or after 'close-console'\n" << end(); \
       break; \
     }
 #define CHECK_CONSOLE \
     if (!tb_is_active()) { \
       if (Run_tests) \
-        raise << maybe(current_recipe_name()) << "tried to read event from real keyboard/mouse before 'open-console'\n" << end(); \
-      else \
         raise << maybe(current_recipe_name()) << "tried to read event from real keyboard/mouse in a test!\n" << end(); \
+      else \
+        raise << maybe(current_recipe_name()) << "tried to read event from real keyboard/mouse before 'open-console' or after 'close-console'\n" << end(); \
       break; \
     }