From 56ddf095ab3b7ca183425641e84022a194d1111e Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Thu, 17 Oct 2024 17:00:09 +0200 Subject: [PATCH] Adjust error message to field name (#648) --- producer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/producer.go b/producer.go index 6d6392ad..3d365365 100644 --- a/producer.go +++ b/producer.go @@ -93,7 +93,7 @@ func (c *producerConfig) mustValidate() *producerConfig { panic("producerConfig.Completer is required") } if c.ClientID == "" { - panic("producerConfig.ClientName is required") + panic("producerConfig.ClientID is required") } if c.FetchCooldown <= 0 { panic("producerConfig.FetchCooldown must be great than zero")