Skip to content

Commit 8d9d0ce

Browse files
chore(patch): [sc-8379] use returned error (#163)
1 parent 97a3eec commit 8d9d0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Kafka/RDKafka/RDKafkaClient.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public final class RDKafkaClient: Sendable {
150150
}
151151

152152
if error != RD_KAFKA_RESP_ERR_NO_ERROR {
153-
throw KafkaError.rdKafkaError(wrapping: rd_kafka_last_error())
153+
throw KafkaError.rdKafkaError(wrapping: error)
154154
}
155155
}
156156

0 commit comments

Comments
 (0)