code: function formatError(error, stack) {
    if (origPrepareStackTrace) {
      return origPrepareStackTrace(error, stack);
    }
    return [
      error.toString(),
      stack
        .map(function (frame) {
          return 'at ' + frame.toString();
        })
        .map(padLeft)
        .join('\n')
    ].join('\n');
  }
docs: Creates and returns a string representation of an error.
  
  @param {Error} error - The error.
  @returns {String} - A string representation of the error.