Skip to content

Commit 8ce6cc6

Browse files
committed
Auto-generated commit
1 parent abcff36 commit 8ce6cc6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/.keepalive

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

lib/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-propert
2424
var iteratorSymbol = require( '@stdlib/symbol-iterator' );
2525
var abs = require( '@stdlib/math-base-special-abs' );
2626
var cospi = require( '@stdlib/math-base-special-cospi' );
27+
var format = require( '@stdlib/string-format' );
2728
var validate = require( './validate.js' );
2829

2930

@@ -111,10 +112,10 @@ function iterBartlettHannPulse( options ) {
111112
opts.duration = opts.period;
112113
}
113114
if ( opts.duration > opts.period ) {
114-
throw new RangeError( 'invalid option. `duration` option must be less than or equal to the period. Option: `' + opts.duration + '`.' );
115+
throw new RangeError( format( 'invalid option. `%s` option must be less than or equal to the period. Option: `%u`.', 'duration', opts.duration ) );
115116
}
116117
if ( opts.duration <= 2 ) {
117-
throw new RangeError( 'invalid option. `duration` option must be greater than 2. Option: `' + opts.duration + '`.' );
118+
throw new RangeError( format( 'invalid option. `%s` option must be greater than 2. Option: `%s`.' , 'duration', opts.duration ) );
118119
}
119120
t = ( opts.period-opts.offset ) % opts.period;
120121
if ( t < 0 ) {

0 commit comments

Comments
 (0)