Skip to content

Commit dc73244

Browse files
author
accelerated
committed
Fixes #158
1 parent 05cc830 commit dc73244

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)