Call scanner.Err() and return early if necessary