lib/_provisioning/provision-util.js
function (message, component, header) {
    if (typeof header === 'undefined') {
      header = ''
    }
    if (component) {
      if (header) {
        header += ' '
      }
      header += '('
      header += component
      header += ')'
    }
    if (header) {
      message = header + ': ' + message
    }
    return message
  }
function (message, component, header) {
    if (typeof header === 'undefined') {
      header = ''
    }
    if (component) {
      if (header) {
        header += ' '
      }
      header += '('
      header += component
      header += ')'
    }
    if (header) {
      message = header + ': ' + message
    }
    return message
  }
function ( message , component , header ) { if ( typeof header === 'undefined' ) { header = '' } if ( component ) { if ( header ) { header += ' ' } header += '(' header += component header += ')' } if ( header ) { message = header + ': ' + message } return message }
Returns a formatted error message string for use in log and exception
messages.
@param {String} message - The base message.
@param {String} [component] - Description of the system component in which
the error occurred.
@param {String} [header] - Prefix to include before the error message.
@returns {String} The formatted error message.
Returns a formatted error message string for use in log and exception messages .