From 458590eaa487b1f48e4c668b00a136a88aaf95e3 Mon Sep 17 00:00:00 2001 From: Dominic Evans Date: Sat, 26 Feb 2022 12:11:52 +0000 Subject: [PATCH] fix: remove "Is your cluster reachable?" from msg Now that we properly wrap and return the underlying broker errors, this part of the message is unnecessary and jarring so lets remove it. --- errors.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/errors.go b/errors.go index bf5d76b24..df796f910 100644 --- a/errors.go +++ b/errors.go @@ -9,7 +9,7 @@ import ( // ErrOutOfBrokers is the error returned when the client has run out of brokers to talk to because all of them errored // or otherwise failed to respond. -var ErrOutOfBrokers = errors.New("kafka: client has run out of available brokers to talk to (Is your cluster reachable?)") +var ErrOutOfBrokers = errors.New("kafka: client has run out of available brokers to talk to") // ErrBrokerNotFound is the error returned when there's no broker found for the requested ID. var ErrBrokerNotFound = errors.New("kafka: broker for ID is not found") diff --git a/go.mod b/go.mod index 898538919..55e438268 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/fortytw2/leaktest v1.3.0 github.com/frankban/quicktest v1.14.2 // indirect github.com/golang/snappy v0.0.4 // indirect - github.com/hashicorp/go-multierror v1.1.1 // indirect + github.com/hashicorp/go-multierror v1.1.1 github.com/jcmturner/gofork v1.0.0 github.com/jcmturner/gokrb5/v8 v8.4.2 github.com/klauspost/compress v1.14.4