about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--031merge.cc2
-rw-r--r--033exclusive_container.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/031merge.cc b/031merge.cc
index 4acc6ec8..c6e08027 100644
--- a/031merge.cc
+++ b/031merge.cc
@@ -180,7 +180,7 @@ void check_merge_call(const vector<reagent>& ingredients, const reagent& product
         }
         break;
       }
-      // End valid_merge Cases
+      // End check_merge_call Cases
       default: {
         if (!types_coercible(container, ingredients.at(ingredient_index))) {
           raise << maybe(caller.name) << "incorrect type of ingredient " << ingredient_index << " in '" << to_original_string(inst) << "'\n" << end();
diff --git a/033exclusive_container.cc b/033exclusive_container.cc
index 93aea482..40e90f35 100644
--- a/033exclusive_container.cc
+++ b/033exclusive_container.cc
@@ -273,14 +273,14 @@ def main [
   1:number <- copy 0
   2:foo <- merge 1:number, 34
 ]
-+error: main: ingredient 0 of 'merge' should be a literal, for the tag of exclusive-container 'foo'
++error: main: ingredient 0 of 'merge' should be a literal, for the tag of exclusive-container 'foo' in '2:foo <- merge 1:number, 34'
 
-:(before "End valid_merge Cases")
+:(before "End check_merge_call Cases")
 case EXCLUSIVE_CONTAINER: {
   assert(state.data.top().container_element_index == 0);
   trace(9999, "transform") << "checking exclusive container " << to_string(container) << " vs ingredient " << ingredient_index << end();
   if (!is_literal(ingredients.at(ingredient_index))) {
-    raise << maybe(caller.name) << "ingredient " << ingredient_index << " of 'merge' should be a literal, for the tag of exclusive-container '" << container_info.name << "'\n" << end();
+    raise << maybe(caller.name) << "ingredient " << ingredient_index << " of 'merge' should be a literal, for the tag of exclusive-container '" << container_info.name << "' in '" << to_original_string(inst) << "'\n" << end();
     return;
   }
   reagent/*copy*/ ingredient = ingredients.at(ingredient_index);  // unnecessary copy just to keep this function from modifying caller
='/akkartik/mu/commit/cpp/000organization?h=main&id=3c435756bcd997dac981ca78c49c5100eb2211b7'>3c435756 ^
c6e1041f ^


d77a5ccc ^
c6e1041f ^
2d05f43c ^
3c435756 ^


84ca523f ^



36f616b5 ^



51530916 ^






8f97725d ^
36f616b5 ^


51530916 ^


1ba81b0f ^
5f05e954 ^
8f97725d ^
36f616b5 ^


1ba81b0f ^
51530916 ^


6573fe1f ^
b39ceb27 ^
26785f2a ^
b39ceb27 ^
8f249677 ^
b39ceb27 ^

51530916 ^


4ea9905f ^


36f616b5 ^
455f0338 ^
385ff136 ^
455f0338 ^



6573fe1f ^
ec99eb7a ^
51530916 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136