File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ var isndarrayLike = require( '@stdlib/assert-is-ndarray-like' );
24
24
var isReadOnly = require ( '@stdlib/ndarray-base-assert-is-read-only' ) ;
25
25
var isFunction = require ( '@stdlib/assert-is-function' ) ;
26
26
var base = require ( '@stdlib/ndarray-base-fill-by' ) ;
27
- var format = require ( '@stdlib/string-format ' ) ;
27
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
28
28
29
29
30
30
// MAIN //
@@ -59,13 +59,13 @@ var format = require( '@stdlib/string-format' );
59
59
*/
60
60
function fillBy ( x , fcn , thisArg ) {
61
61
if ( ! isndarrayLike ( x ) ) {
62
- throw new TypeError ( format ( 'invalid argument. First argument must be an ndarray-like object. Value: `%s`. ' , x ) ) ;
62
+ throw new TypeError ( format ( 'null5t ' , x ) ) ;
63
63
}
64
64
if ( isReadOnly ( x ) ) {
65
- throw new Error ( 'invalid argument. Cannot write to a read-only array.' ) ;
65
+ throw new Error ( format ( 'nullEs' ) ) ;
66
66
}
67
67
if ( ! isFunction ( fcn ) ) {
68
- throw new TypeError ( format ( 'invalid argument. Second argument must be a function. Value: `%s`. ' , fcn ) ) ;
68
+ throw new TypeError ( format ( 'null2H ' , fcn ) ) ;
69
69
}
70
70
base ( x , fcn , thisArg ) ;
71
71
return x ;
Original file line number Diff line number Diff line change 41
41
"@stdlib/assert-is-ndarray-like" : " ^0.2.2" ,
42
42
"@stdlib/ndarray-base-assert-is-read-only" : " ^0.2.2" ,
43
43
"@stdlib/ndarray-base-fill-by" : " github:stdlib-js/ndarray-base-fill-by#main" ,
44
- "@stdlib/string-format " : " ^0.2.2" ,
44
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
45
45
"@stdlib/types" : " ^0.4.3" ,
46
46
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
47
47
},
You can’t perform that action at this time.
0 commit comments