Usage
var fmtprodmsg = require( '@stdlib/error-tools-fmtprodmsg' );
fmtprodmsg( code, ...args )
Formats an error message for production.
var msg = fmtprodmsg( '27', 'foo', 'bar' );
Examples
var fmtprodmsg = require( '@stdlib/error-tools-fmtprodmsg' );
var msg = fmtprodmsg( '3', 'foo' );
msg = fmtprodmsg( '5', 'foo', 'bar' );
msg = fmtprodmsg( '5', 'foo', 'bar', 123 );
Notice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
License
See LICENSE.
Copyright
Copyright © 2016-2022. The Stdlib Authors.