print error if no elements are extracted.