about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--edit/005-sandbox.mu6
-rw-r--r--edit/011-errors.mu5
2 files changed, 4 insertions, 7 deletions
diff --git a/edit/005-sandbox.mu b/edit/005-sandbox.mu
index 9e175378..16754946 100644
--- a/edit/005-sandbox.mu
+++ b/edit/005-sandbox.mu
@@ -131,11 +131,7 @@ after <global-keypress> [
     screen <- update-status screen, [running...       ], 245/grey
     error?:bool <- run-sandboxes env, resources, screen
     # we could just render-all, but we do some work to minimize the number of prints to screen
-    <render-recipe-errors-on-F4>
-    {
-      break-unless error?
-      <render-sandbox-errors-on-F4>
-    }
+    <end-run-sandboxes-on-F4>
     screen <- render-sandbox-side screen, env, render
     {
       break-if error?
diff --git a/edit/011-errors.mu b/edit/011-errors.mu
index 0c1ba545..9625f8e1 100644
--- a/edit/011-errors.mu
+++ b/edit/011-errors.mu
@@ -23,7 +23,7 @@ def! update-recipes env:&:environment, resources:&:resources, screen:&:screen ->
   errors-found? <- copy 0/false
 ]
 
-after <render-recipe-errors-on-F4> [
+before <end-run-sandboxes-on-F4> [
   screen <- render-recipe-errors env, screen
 ]
 
@@ -64,8 +64,9 @@ before <end-run-sandboxes> [
   }
 ]
 
-after <render-sandbox-errors-on-F4> [
+before <end-run-sandboxes-on-F4> [
   {
+    break-unless error?
     recipe-errors:text <- get *env, recipe-errors:offset
     break-if recipe-errors
     error-index:num <- get *env, error-index:offset