Skip to content

Commit 7832686

Browse files
committed
Use recursion
1 parent 3a140e8 commit 7832686

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/string/format/lib

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function format( str ) {
6565
var j;
6666

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

0 commit comments

Comments
 (0)