def _error_with_fields(message, fields):
    """
    Helper function to create an error message with a list of quoted, comma
    separated field names. The `message` argument should be a format string
    with a single `%s` placeholder.
    """
    return message % ', '.join('"%s"' % f for f in fields)