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
returnnewError(format('invalid option. `%s` option must be either `http` or `https`. Option: `%s`.','protocol',opts.protocol));
62
+
returnnewError(format('invalid option. `%s` option must be one of the following: "%s". Option: `%s`.','protocol',['http','https'].join('", "'),opts.protocol));
returnnewError(format('invalid option. `%s` option must be either `http` or `https`. Option: `%s`.','protocol',opts.protocol));
62
+
returnnewError(format('invalid option. `%s` option must be one of the following: "%s". Option: `%s`.','protocol',['http','https'].join('", "'),opts.protocol));
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/array/linspace/lib/main.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ function linspace( start, stop, len ) {
126
126
}
127
127
ctor=ctors(opts.dtype);
128
128
if(ctor===null){
129
-
thrownewTypeError(format('invalid argument. `%s` option must be a real or complex floating-point data type or "generic". Option: `%s`.','dtype',opts.dtype));
129
+
thrownewTypeError(format('invalid option. `%s` option must be a real or complex floating-point data type or "generic". Option: `%s`.','dtype',opts.dtype));
thrownewError(format('invalid argument. Second argument is incompatible with model loss function. Probability predictions are only supported when the loss function is either `log` or `modifiedHuber`. Model loss function: `%s`.',opts.loss));
194
+
thrownewError(format('invalid argument. Second argument is incompatible with model loss function. Probability predictions are only supported when the loss function is one of the following: "%s". Model loss function: `%s`.',['log','modifiedHuber'].join('", "'),opts.loss));
195
195
}
196
196
}elseif(type!=='label'&&type!=='linear'){
197
197
thrownewTypeError(format('invalid argument. Second argument must be a string value equal to either "label", "probability", or "linear". Value: `%s`.',type));
thrownewTypeError(format('invalid argument. `buffer` argument `get` and `set` properties must be functions. Value: `%s`.',buffer));
120
+
thrownewTypeError(format('invalid argument. Second argument `get` and `set` properties must be functions. Value: `%s`.',buffer));
121
121
}
122
122
if(!isNonNegativeIntegerArray(shape)){
123
123
if(!isCollection(shape)||shape.length>0){
124
-
thrownewTypeError(format('invalid argument. `shape` argument must be an array-like object containing nonnegative integers. Value: `%s`.',shape));
124
+
thrownewTypeError(format('invalid argument. Third argument must be an array-like object containing nonnegative integers. Value: `%s`.',shape));
125
125
}
126
126
}
127
127
ndims=shape.length;
128
128
if(ndims>MAX_DIMS){
129
129
thrownewRangeError(format('invalid argument. Number of dimensions must not exceed %u due to stack limits. Value: `%u`.',MAX_DIMS,ndims));
130
130
}
131
131
if(!isIntegerArray(strides)){
132
-
thrownewTypeError(format('invalid argument. `strides` argument must be an array-like object containing integers. Value: `%s`.',strides));
132
+
thrownewTypeError(format('invalid argument. Fourth argument must be an array-like object containing integers. Value: `%s`.',strides));
133
133
}
134
134
if(ndims>0){
135
135
if(strides.length!==ndims){
136
-
thrownewRangeError(format('invalid argument. `strides` argument length must match the number of dimensions. Expected number of dimensions: `%u`. Strides length: `%u`.',ndims,strides.length));
136
+
thrownewRangeError(format('invalid argument. Fourth argument length must match the number of dimensions. Expected number of dimensions: `%u`. Strides length: `%u`.',ndims,strides.length));
137
137
}
138
138
}elseif(strides.length!==1){
139
-
thrownewRangeError('invalid argument. `strides` length must be equal to 1 when creating a zero-dimensional ndarray.');
139
+
thrownewRangeError('invalid argument. Fourth argument length must be equal to 1 when creating a zero-dimensional ndarray.');
140
140
}elseif(strides[0]!==0){
141
-
thrownewRangeError(format('invalid argument. `strides` argument must contain a single element equal to `0`. Value: `%d`.',strides[0]));
141
+
thrownewRangeError(format('invalid argument. Fourth argument must contain a single element equal to `0`. Value: `%d`.',strides[0]));
142
142
}
143
143
if(!isNonNegativeInteger(offset)){
144
-
thrownewTypeError(format('invalid argument. `offset` argument must be a nonnegative integer. Value: `%s`.',offset));
144
+
thrownewTypeError(format('invalid argument. Fifth argument must be a nonnegative integer. Value: `%s`.',offset));
145
145
}
146
146
if(!isOrder(order)){
147
-
thrownewTypeError(format('invalid argument. `order` argument must be a supported order. Value: `%s`.',order));
147
+
thrownewTypeError(format('invalid argument. Sixth argument must be a supported order. Value: `%s`.',order));
thrownewError('invalid arguments. The input buffer is incompatible with the specified meta data. Ensure that the offset is valid with regard to the strides array and that the buffer has enough elements to satisfy the desired array shape.');
0 commit comments