Skip to content

Commit fb4c5ed

Browse files
authored
Merge pull request #159 from accelerated/check_error_fix
Fix error check in partition list
2 parents 05cc830 + dc73244 commit fb4c5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kafka_handle_base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ void KafkaHandleBase::check_error(rd_kafka_resp_err_t error,
241241
//check if any partition has errors
242242
for (int i = 0; i < list_ptr->cnt; ++i) {
243243
if (list_ptr->elems[i].err != RD_KAFKA_RESP_ERR_NO_ERROR) {
244-
throw HandleException(error);
244+
throw HandleException(list_ptr->elems[i].err);
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)