Skip to content

Commit 3a140e8

Browse files
committed
Fix error message
1 parent 1614dd9 commit 3a140e8

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/string/format/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/string/format/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var isnan = isNaN; // NOTE: We use the global `isNaN` function here instead of `
4141
*
4242
* @param {string} str - input string
4343
* @param {Array} ...args - variable values
44-
* @throws {TypeError} must provide a string
44+
* @throws {TypeError} first argument must be a string
4545
* @throws {Error} invalid flags
4646
* @returns {string} formatted string
4747
*
@@ -65,7 +65,7 @@ function format( str ) {
6565
var j;
6666

6767
if ( !isString( str ) ) {
68-
throw new TypeError( 'invalid argument. Must provide a string. Value: `' + str + '`.' );
68+
throw new TypeError( 'invalid argument. First argument must be a string. Value: `' + str + '`.' );
6969
}
7070
tokens = tokenize( str );
7171
out = '';

0 commit comments

Comments
 (0)