lib/async.js
changed.
Showing 1 of 1 files from the diff.
@@ -27,6 +27,7 @@
Loading
27 | 27 | var removeBOM = require( '@stdlib/string-remove-utf8-bom' ); |
|
28 | 28 | var parseJSON = require( '@stdlib/utils-parse-json' ); |
|
29 | 29 | var instanceOf = require( '@stdlib/assert-instance-of' ); |
|
30 | + | var format = require( '@stdlib/string-format' ); |
|
30 | 31 | ||
31 | 32 | ||
32 | 33 | // MAIN // |
@@ -68,14 +69,14 @@
Loading
68 | 69 | }; |
|
69 | 70 | } else { |
|
70 | 71 | if ( !isObject( options ) ) { |
|
71 | - | throw new TypeError( 'invalid argument. Options argument must be either a string or an object. Value: `' + options + '`.' ); |
|
72 | + | throw new TypeError( format( 'invalid argument. Options argument must be either a string or an object. Value: `%s`.', options ) ); |
|
72 | 73 | } |
|
73 | 74 | opts = options; |
|
74 | 75 | } |
|
75 | 76 | done = clbk; |
|
76 | 77 | } |
|
77 | 78 | if ( !isFunction( done ) ) { |
|
78 | - | throw new TypeError( 'invalid argument. Callback argument must be a function. Value: `' + done + '`.' ); |
|
79 | + | throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', done ) ); |
|
79 | 80 | } |
|
80 | 81 | readFile( file, opts, onRead ); |
|
81 | 82 |
Files | Coverage |
---|---|
lib | 100.00% |
Project Totals (3 files) | 100.00% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.