File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/node_modules/@stdlib/string/format/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ var isnan = isNaN; // NOTE: We use the global `isNaN` function here instead of `
41
41
*
42
42
* @param {string } str - input string
43
43
* @param {Array } ...args - variable values
44
- * @throws {TypeError } must provide a string
44
+ * @throws {TypeError } first argument must be a string
45
45
* @throws {Error } invalid flags
46
46
* @returns {string } formatted string
47
47
*
@@ -65,7 +65,7 @@ function format( str ) {
65
65
var j ;
66
66
67
67
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 + '`.' ) ;
69
69
}
70
70
tokens = tokenize ( str ) ;
71
71
out = '' ;
You can’t perform that action at this time.
0 commit comments