code: function _replaceRegex (cartoError, listedError) {
    if (!listedError.friendlyMessage) {
      return cartoError.message;
    }
    var match = cartoError.message && cartoError.message.match(listedError.messageRegex);
    if (match && match.length > 1) {
      var replaced = listedError.friendlyMessage.replace('$0', match[1]);
      if (match.length > 2) {
        replaced = replaced.replace('$1', match[2]);
      }
      return replaced;
    }
    return listedError.friendlyMessage;
  }
docs: Replace $0 and $1 with the proper paramter in the listedError regex to build a friendly message