UNPKG

550 BJavaScriptView Raw
1'use strict';
2
3/**
4 * Creates an argument error message for a production environment.
5 * @kind function
6 * @name createArgErrorMessageProd
7 * @param {number} argNumber Argument number (starts at 1).
8 * @returns {string} Error message.
9 * @ignore
10 */
11module.exports = function createArgErrorMessageProd(argNumber) {
12 // Argument checks are skipped for this function as it’s supposed to be ultra
13 // lightweight for production, and all the times it’s used in the project are
14 // tested anyway.
15 return `Argument ${argNumber} type invalid.`;
16};