Return the first error inthe batch when there is one