about summary refs log tree commit diff stats
path: root/021check_instruction.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-05-20 22:18:33 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-05-20 22:18:33 -0700
commite0659ab38fa6315a0b83a2757582f49976ab38fa (patch)
tree4e2a1194f97dc34f7f961b0787096628235002df /021check_instruction.cc
parent9dcbec398c5aedf27757365cc1f4c7c36e138539 (diff)
downloadmu-e0659ab38fa6315a0b83a2757582f49976ab38fa.tar.gz
2991
Never mind, always quote direct quotes from code in error messages.
Dilated reagents are the uncommon case.
Diffstat (limited to '021check_instruction.cc')
-rw-r--r--021check_instruction.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/021check_instruction.cc b/021check_instruction.cc
index 2bf0d97a..97d16fe8 100644
--- a/021check_instruction.cc
+++ b/021check_instruction.cc
@@ -27,7 +27,7 @@ void check_instruction(const recipe_ordinal r) {
         }
         for (int i = 0; i < SIZE(inst.ingredients); ++i) {
           if (!types_coercible(inst.products.at(i), inst.ingredients.at(i))) {
-            raise << maybe(get(Recipe, r).name) << "can't copy " << inst.ingredients.at(i).original_string << " to " << inst.products.at(i).original_string << "; types don't match\n" << end();
+            raise << maybe(get(Recipe, r).name) << "can't copy '" << inst.ingredients.at(i).original_string << "' to '" << inst.products.at(i).original_string << "'; types don't match\n" << end();
             goto finish_checking_instruction;
           }
         }
@@ -55,21 +55,21 @@ def main [
 def main [
   1:array:number <- copy 34
 ]
-+error: main: can't copy 34 to 1:array:number; types don't match
++error: main: can't copy '34' to '1:array:number'; types don't match
 
 :(scenario write_scalar_to_array_disallowed_2)
 % Hide_errors = true;
 def main [
   1:number, 2:array:number <- copy 34, 35
 ]
-+error: main: can't copy 35 to 2:array:number; types don't match
++error: main: can't copy '35' to '2:array:number'; types don't match
 
 :(scenario write_scalar_to_address_disallowed)
 % Hide_errors = true;
 def main [
   1:address:number <- copy 34
 ]
-+error: main: can't copy 34 to 1:address:number; types don't match
++error: main: can't copy '34' to '1:address:number'; types don't match
 
 :(scenario write_address_to_number_allowed)
 def main [