You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/preprocess/ParameterHandler.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ export class ParameterHandler {
48
48
value=values[0];
49
49
}elseif(values.length>0){
50
50
if(values.some(subValue=>!subValue.list)){
51
-
thrownewErrorResourcesContext(`Detected multiple values for parameter ${parameter.value}. RDF lists should be used for defining multiple values.`,{
51
+
thrownewErrorResourcesContext(`Detected multiple values for parameter ${parameter.value} in ${configElement.value}. RDF lists should be used for defining multiple values.`,{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
136
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
136
137
});
137
138
138
139
it('instantiated with a config with all parameters with multiple values as list',async()=>{
@@ -241,13 +242,14 @@ describe('construction with component configs as Resource', () => {
241
242
242
243
it('instantiated with a config with all parameters as multiple non-list values should throw',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
252
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
251
253
});
252
254
253
255
it('instantiated with a config with all parameters as singular values as list',async()=>{
@@ -318,13 +320,14 @@ describe('construction with component configs as Resource', () => {
318
320
319
321
it('instantiated with a config with all parameters with multiple values should throw',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
330
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
328
331
});
329
332
330
333
it('instantiated with a config with all parameters with multiple values as list should throw',async()=>{
@@ -774,13 +777,14 @@ describe('construction with component configs as Resource', () => {
774
777
775
778
it('instantiated with a config with all parameters as multiple values in list',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
787
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
784
788
});
785
789
786
790
it('instantiated with a config with all parameters as singular value in RDF list',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
188
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
188
189
});
189
190
190
191
it('instantiated with a config with all parameters with multiple values as list',async()=>{
@@ -290,13 +291,14 @@ describe('construction with mapped component configs as Resource', () => {
290
291
291
292
it('instantiated with a config with all parameters with multiple values as non-list',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
301
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
300
302
});
301
303
302
304
it('instantiated with a config with all parameters with multiple values as list',async()=>{
@@ -443,13 +445,14 @@ describe('construction with mapped component configs as Resource', () => {
443
445
444
446
it('instantiated with a config with all parameters with multiple values as non-list',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
455
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
453
456
});
454
457
455
458
it('instantiated with a config with all parameters with multiple values as list',async()=>{
@@ -1075,13 +1078,14 @@ describe('construction with mapped component configs as Resource', () => {
1075
1078
1076
1079
it('instantiated with a config with all parameters as multiple values in list',async()=>{
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode. RDF lists should be used for defining multiple values.`);
1088
+
.toThrowError(`Detected multiple values for parameter http://example.org/n3#lineMode in ex:config. RDF lists should be used for defining multiple values.`);
1085
1089
});
1086
1090
1087
1091
it('instantiated with a config with all parameters as singular value in RDF list',async()=>{
.toThrowError(`Detected multiple values for parameter ex:myComponentInstance#param1. RDF lists should be used for defining multiple values.`);
270
+
.toThrowError(`Detected multiple values for parameter ex:myComponentInstance#param1 in ex:myComponentInstance. RDF lists should be used for defining multiple values.`);
271
271
});
272
272
273
273
it('should handle one parameter with multiple values as list',()=>{
0 commit comments