Skip to content

Commit

Permalink
Fixes #158
Browse files Browse the repository at this point in the history
  • Loading branch information
accelerated committed Jan 16, 2019
1 parent 05cc830 commit dc73244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kafka_handle_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void KafkaHandleBase::check_error(rd_kafka_resp_err_t error,
//check if any partition has errors
for (int i = 0; i < list_ptr->cnt; ++i) {
if (list_ptr->elems[i].err != RD_KAFKA_RESP_ERR_NO_ERROR) {
throw HandleException(error);
throw HandleException(list_ptr->elems[i].err);
}
}
}
Expand Down

0 comments on commit dc73244

Please sign in to comment.