def error_prepared_stream_reader(connection_prepared_stream_reader):
    """Create a StreamReader and fill it with an error message."""
    connection_prepared_stream_reader.feed_data(
        b"ERROR: unknown command or variable 'updates'\n"
    )
    connection_prepared_stream_reader.feed_eof()
    return connection_prepared_stream_reader