We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a140e8 commit 7832686Copy full SHA for 7832686
1 file changed
lib/node_modules/@stdlib/string/format/lib/main.js
@@ -65,7 +65,7 @@ function format( str ) {
65
var j;
66
67
if ( !isString( str ) ) {
68
- throw new TypeError( 'invalid argument. First argument must be a string. Value: `' + str + '`.' );
+ throw new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', str ) );
69
}
70
tokens = tokenize( str );
71
out = '';
0 commit comments