about summary refs log tree commit diff stats
path: root/sandbox/010-errors.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-14 13:00:21 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-03-14 13:00:21 -0700
commit44bab2e4b4c8252b20c848108fa7bf9e33e2b26a (patch)
tree59312503c564a69b33105fe5801e5f79db65587e /sandbox/010-errors.mu
parent3c393fd2449ebdd362f39873106199f089ed6718 (diff)
downloadmu-44bab2e4b4c8252b20c848108fa7bf9e33e2b26a.tar.gz
2782 - directly use string literals everywhere
Diffstat (limited to 'sandbox/010-errors.mu')
-rw-r--r--sandbox/010-errors.mu9
1 files changed, 3 insertions, 6 deletions
diff --git a/sandbox/010-errors.mu b/sandbox/010-errors.mu
index 1a84764d..b76c9fc0 100644
--- a/sandbox/010-errors.mu
+++ b/sandbox/010-errors.mu
@@ -22,8 +22,7 @@ def! update-recipes env:address:shared:programming-environment-data, screen:addr
   # if recipe editor has errors, stop
   {
     break-unless *recipe-errors
-    status:address:shared:array:character <- new [errors found     ]
-    update-status screen, status, 1/red
+    update-status screen, [errors found     ], 1/red
     errors-found? <- copy 1/true
     return
   }
@@ -35,8 +34,7 @@ before <render-components-end> [
   recipe-errors:address:shared:array:character <- get *env, recipe-errors:offset
   {
     break-unless recipe-errors
-    status:address:shared:array:character <- new [errors found     ]
-    update-status screen, status, 1/red
+    update-status screen, [errors found     ], 1/red
   }
 ]
 
@@ -68,9 +66,8 @@ before <render-components-end> [
     error-index:number <- get *env, error-index:offset
     sandboxes-completed-successfully?:boolean <- equal error-index, -1
     break-if sandboxes-completed-successfully?
-    status-template:address:shared:array:character <- new [errors found (_)    ]
     error-index-text:address:shared:array:character <- to-text error-index
-    status:address:shared:array:character <- interpolate status-template, error-index-text
+    status:address:shared:array:character <- interpolate [errors found (_)    ], error-index-text
     update-status screen, status, 1/red
   }
 ]