function slackError(errorCode = 0, addtlInfo = false) {
  const addtlInfoStr = addtlInfo !== false ? ` (${JSON.stringify(addtlInfo)})` : '';

  sendSlackNotification(
    `Error ${errorCode}: ${getErrorMessage(errorCode)}${addtlInfoStr}`,
    `Error code ${errorCode}`,
    'danger',
    getFields(getErrorMessage(errorCode), addtlInfo),
  );
}
/**
 * Send error notification to Slack based on error code string
 *
 * @param {Int} errorCode
 * @param {addtlInfo} any Optional extra info
 */
Send error notification to Slack based on error code string
@param {Int} errorCode
@param {addtlInfo} any Optional extra info
Send error notification to Slack based on error code string @param { Int } errorCode @param { addtlInfo } any Optional extra info
function slackError(errorCode = 0, addtlInfo = false) {
  const addtlInfoStr = addtlInfo !== false ? ` (${JSON.stringify(addtlInfo)})` : '';
  sendSlackNotification(
    `Error ${errorCode}: ${getErrorMessage(errorCode)}${addtlInfoStr}`,
    `Error code ${errorCode}`,
    'danger',
    getFields(getErrorMessage(errorCode), addtlInfo),
  );
}
function slackError ( errorCode = 0 , addtlInfo = false ) { const addtlInfoStr = addtlInfo !== false ? ` ${ JSON . stringify ( addtlInfo ) } ` : '' ; sendSlackNotification ( ` ${ errorCode } ${ getErrorMessage ( errorCode ) } ${ addtlInfoStr } ` , ` ${ errorCode } ` , 'danger' , getFields ( getErrorMessage ( errorCode ) , addtlInfo ) , ) ; }
Send error notification to Slack based on error code string
 @param {Int} errorCode
 @param {addtlInfo} any Optional extra info
Send error notification to Slack based on error code string @param { Int } errorCode @param { addtlInfo } any Optional extra info