Skip to content

Commit 54403c4

Browse files
committed
- proper error messages including the correct package name.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5768 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent e47e9ef commit 54403c4

File tree

8 files changed

+19
-16
lines changed

8 files changed

+19
-16
lines changed

Compiler/HashTable.mo

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ algorithm
237237
then HASHTABLE(hashvec,varr_1,bsize,n);
238238
case (_,_)
239239
equation
240-
print("-HashTable.add failed\n");
240+
print("- HashTable.add failed\n");
241241
then
242242
fail();
243243
end matchcontinue;
@@ -295,7 +295,8 @@ algorithm
295295
tuple<Key,Value> v,newv;
296296
Key key;
297297
Value value;
298-
/* Adding when not existing previously */
298+
299+
// adding when not existing previously
299300
case ((v as (key,value)),(hashTable as HASHTABLE(hashvec,varr,bsize,n)))
300301
equation
301302
hval = hashFunc(key);
@@ -306,9 +307,11 @@ algorithm
306307
hashvec_1 = arrayUpdate(hashvec, indx + 1, ((key,newpos) :: indexes));
307308
n_1 = valueArrayLength(varr_1);
308309
then HASHTABLE(hashvec_1,varr_1,bsize,n_1);
309-
case (_,_)
310+
311+
// failure
312+
case (_,_)
310313
equation
311-
print("-HashTable.addNoUpdCheck failed\n");
314+
print("- HashTable.addNoUpdCheck failed\n");
312315
then
313316
fail();
314317
end matchcontinue;

Compiler/HashTable2.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ algorithm
137137
then HASHTABLE(hashvec,varr_1,bsize,n);
138138
case (_,_)
139139
equation
140-
print("-HashTable.add failed\n");
140+
print("- HashTable2.add failed\n");
141141
then
142142
fail();
143143
end matchcontinue;
@@ -177,7 +177,7 @@ algorithm
177177
then HASHTABLE(hashvec_1,varr_1,bsize,n_1);
178178
case (_,_)
179179
equation
180-
print("-HashTable2.addNoUpdCheck failed\n");
180+
print("- HashTable2.addNoUpdCheck failed\n");
181181
then
182182
fail();
183183
end matchcontinue;

Compiler/HashTable3.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ algorithm
138138
then HASHTABLE(hashvec,varr_1,bsize,n);
139139
case (_,_)
140140
equation
141-
print("-HashTable.add failed\n");
141+
print("- HashTable3.add failed\n");
142142
then
143143
fail();
144144
end matchcontinue;

Compiler/HashTable4.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ algorithm
169169
then HASHTABLE(hashvec,varr_1,bsize,n);
170170
case (_,_)
171171
equation
172-
print("-HashTable.add failed\n");
172+
print("- HashTable4.add failed\n");
173173
then
174174
fail();
175175
end matchcontinue;
@@ -209,7 +209,7 @@ algorithm
209209
then HASHTABLE(hashvec_1,varr_1,bsize,n_1);
210210
case (_,_)
211211
equation
212-
print("-HashTable.addNoUpdCheck failed\n");
212+
print("- HashTable4.addNoUpdCheck failed\n");
213213
then
214214
fail();
215215
end matchcontinue;

Compiler/HashTable5.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ algorithm
176176
then HASHTABLE(hashvec,varr_1,bsize,n);
177177
case (_,_)
178178
equation
179-
print("-HashTable.add failed\n");
179+
print("- HashTable5.add failed\n");
180180
then
181181
fail();
182182
end matchcontinue;
@@ -216,7 +216,7 @@ algorithm
216216
then HASHTABLE(hashvec_1,varr_1,bsize,n_1);
217217
case (_,_)
218218
equation
219-
print("-HashTable.addNoUpdCheck failed\n");
219+
print("- HashTable5.addNoUpdCheck failed\n");
220220
then
221221
fail();
222222
end matchcontinue;

Compiler/HashTable6.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ algorithm
208208
then HASHTABLE(hashvec,varr_1,bsize,n);
209209
case (_,_)
210210
equation
211-
print("-HashTable.add failed\n");
211+
print("- HashTable6.add failed\n");
212212
then
213213
fail();
214214
end matchcontinue;
@@ -279,7 +279,7 @@ algorithm
279279
then HASHTABLE(hashvec_1,varr_1,bsize,n_1);
280280
case (_,_)
281281
equation
282-
print("-HashTable.addNoUpdCheck failed\n");
282+
print("- HashTable6.addNoUpdCheck failed\n");
283283
then
284284
fail();
285285
end matchcontinue;

Compiler/HashTableCG.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ algorithm
175175
then HASHTABLE(hashvec,varr_1,bsize,n);
176176
case (_,_)
177177
equation
178-
print("-HashTable.add failed\n");
178+
print("- HashTableCG.add failed\n");
179179
then
180180
fail();
181181
end matchcontinue;

Compiler/HashTableStringToPath.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ algorithm
202202
then HASHTABLE(hashvec,varr_1,bsize,n);
203203
case (_,_)
204204
equation
205-
print("-HashTable.add failed\n");
205+
print("- HashTableStringToPath.add failed\n");
206206
then
207207
fail();
208208
end matchcontinue;
@@ -273,7 +273,7 @@ algorithm
273273
then HASHTABLE(hashvec_1,varr_1,bsize,n_1);
274274
case (_,_)
275275
equation
276-
print("-HashTable.addNoUpdCheck failed\n");
276+
print("- HashTableStringToPath.addNoUpdCheck failed\n");
277277
then
278278
fail();
279279
end matchcontinue;

0 commit comments

Comments
 (0)