File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
// MODULES //
22
22
23
23
var isFunction = require ( '@stdlib/assert-is-function' ) ;
24
- var format = require ( '@stdlib/string-format ' ) ;
24
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
25
25
26
26
27
27
// MAIN //
@@ -49,10 +49,10 @@ var format = require( '@stdlib/string-format' );
49
49
function until ( predicate , fcn , thisArg ) {
50
50
var i ;
51
51
if ( ! isFunction ( predicate ) ) {
52
- throw new TypeError ( format ( 'invalid argument. First argument must be a function. Value: `%s`. ' , predicate ) ) ;
52
+ throw new TypeError ( format ( '1YF3c ' , predicate ) ) ;
53
53
}
54
54
if ( ! isFunction ( fcn ) ) {
55
- throw new TypeError ( format ( 'invalid argument. Second argument must be a function. Value: `%s`. ' , fcn ) ) ;
55
+ throw new TypeError ( format ( '1YF2H ' , fcn ) ) ;
56
56
}
57
57
i = 0 ;
58
58
while ( ! predicate ( i ) ) {
Original file line number Diff line number Diff line change 38
38
},
39
39
"dependencies" : {
40
40
"@stdlib/assert-is-function" : " ^0.2.2" ,
41
- "@stdlib/string-format " : " ^0.2.2" ,
41
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
42
42
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
43
43
},
44
44
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments