fmtprodmsg
Format an error message for production.
Usage
var fmtprodmsg = require( '@stdlib/error/tools/fmtprodmsg' );
fmtprodmsg( code, ...args )
Formats an error message for production.
var msg = fmtprodmsg( '27', 'foo', 'bar' );
// returns 'https://stdlib.io/e/27?arg[]=foo&arg[]=bar'
Examples
var fmtprodmsg = require( '@stdlib/error/tools/fmtprodmsg' );
var msg = fmtprodmsg( '3', 'foo' );
// returns 'https://stdlib.io/e?code=3&arg[]=foo'
msg = fmtprodmsg( '5', 'foo', 'bar' );
// returns 'https://stdlib.io/e/5?arg[]=foo&arg[]=bar'
msg = fmtprodmsg( '5', 'foo', 'bar', 123 );
// returns 'https://stdlib.io/e/5?arg[]=foo&arg[]=bar&arg[]=123'