Skip to content

Commit d04f84a

Browse files
committed
Fix error messages
1 parent 8c7e5e9 commit d04f84a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/utils/do-while/lib/do_while.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ var isFunction = require( '@stdlib/assert/is-function' );
3030
function doWhile( fcn, predicate, thisArg ) {
3131
var i;
3232
if ( !isFunction( fcn ) ) {
33-
throw new TypeError( 'invalid input argument. Second argument must be a function. Value: `'+fcn+'`.' );
33+
throw new TypeError( 'invalid input argument. First argument must be a function. Value: `'+fcn+'`.' );
3434
}
3535
if ( !isFunction( predicate ) ) {
36-
throw new TypeError( 'invalid input argument. First argument must be a function. Value: `'+predicate+'`.' );
36+
throw new TypeError( 'invalid input argument. Second argument must be a function. Value: `'+predicate+'`.' );
3737
}
3838
i = 0;
3939
do {

0 commit comments

Comments
 (0)