about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-01-10 13:15:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-01-10 13:15:10 -0800
commitf1737674fc48f5bbfd5a2053fa8e0285c8e67107 (patch)
treefdf31fe2a97c10d33fca9ecea6b550d469f13379
parent13d849ff79e07c70b79671b55337a0c6780bf5e7 (diff)
downloadmu-f1737674fc48f5bbfd5a2053fa8e0285c8e67107.tar.gz
527
-rw-r--r--mu.arc6
1 files changed, 3 insertions, 3 deletions
diff --git a/mu.arc b/mu.arc
index 5aa3e7f6..70d4b534 100644
--- a/mu.arc
+++ b/mu.arc
@@ -578,9 +578,6 @@
                     (= rep.routine!limit (when (len> arg 2) (m arg.2)))
                     (enq routine running-routines*)
                     rep.routine!id)
-                assert
-                  (unless (m arg.0)
-                    (die (v arg.1)))
                 sleep
                   (do
                     (case (v arg.0)
@@ -594,6 +591,9 @@
                         (die "badly formed 'sleep' call @(tostring:prn (body.routine* pc.routine*))")
                       )
                     ((abort-routine*)))
+                assert
+                  (unless (m arg.0)
+                    (die (v arg.1)))  ; other routines will be able to look at the error status
 
                 ; cursor-based (text mode) interaction
                 clear-screen