public DefaultErrorHit removeErrorHit() {
        updateHits(); // Consume and remove from the query producing this as well
        DefaultErrorHit removed = errorHit;
        if (removed != null)
            remove(removed.getId());
        errorHit = null;
        return removed;
    }
Removes the error hit of this.
This removes all error messages of this and the query producing it.

@return the error hit which was removed, or null if there were no errors
container-search/src/main/java/com/yahoo/search/result/HitGroup.java