Skip to content

Commit 9c4fabf

Browse files
committed
Auto-generated commit
1 parent b274120 commit 9c4fabf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var Readable = require( 'readable-stream' ).Readable;
2424
var isCollection = require( '@stdlib/assert-is-collection' );
2525
var isError = require( '@stdlib/assert-is-error' );
2626
var isBuffer = require( '@stdlib/assert-is-buffer' );
27+
var format = require( '@stdlib/string-format' );
2728
var copy = require( '@stdlib/utils-copy' );
2829
var inherit = require( '@stdlib/utils-inherit' );
2930
var setNonEnumerable = require( '@stdlib/utils-define-nonenumerable-property' );
@@ -180,7 +181,7 @@ function ArrayStream( src, options ) {
180181
return new ArrayStream( src );
181182
}
182183
if ( !isCollection( src ) ) {
183-
throw new TypeError( 'invalid argument. First argument must be an array-like object. Value: `' + src + '`.' );
184+
throw new TypeError( format( 'invalid argument. First argument must be an array-like object. Value: `%s`.', src ) );
184185
}
185186
opts = copy( DEFAULTS );
186187
if ( arguments.length > 1 ) {

lib/object_mode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var isObject = require( '@stdlib/assert-is-plain-object' );
24+
var format = require( '@stdlib/string-format' );
2425
var copy = require( '@stdlib/utils-copy' );
2526
var ArrayStream = require( './main.js' );
2627

@@ -64,7 +65,7 @@ function objectMode( src, options ) {
6465
if ( arguments.length > 1 ) {
6566
opts = options;
6667
if ( !isObject( opts ) ) {
67-
throw new TypeError( 'invalid argument. Options must be an object. Value: `' + opts + '`.' );
68+
throw new TypeError( format( 'invalid argument. Options must be an object. Value: `%s`.', opts ) );
6869
}
6970
opts = copy( options, 1 );
7071
} else {

0 commit comments

Comments
 (0)