File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2222
2323var PINF = require ( '@stdlib/constants-float64-pinf' ) ;
2424var NINF = require ( '@stdlib/constants-float64-ninf' ) ;
25- var format = require ( '@stdlib/string-format ' ) ;
25+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
2626
2727
2828// MAIN //
@@ -40,7 +40,7 @@ var format = require( '@stdlib/string-format' );
4040*/
4141function number2json ( x ) {
4242 if ( typeof x !== 'number' ) {
43- throw new TypeError ( format ( 'invalid argument. Must provide a number. Value: `%s`. ' , x ) ) ;
43+ throw new TypeError ( format ( '1dn9X ' , x ) ) ;
4444 }
4545 if ( x !== x ) {
4646 return {
Original file line number Diff line number Diff line change 3939 "dependencies" : {
4040 "@stdlib/constants-float64-ninf" : " ^0.2.2" ,
4141 "@stdlib/constants-float64-pinf" : " ^0.2.2" ,
42- "@stdlib/string-format " : " ^0.2.2" ,
42+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
4343 "@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
4444 },
4545 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments