From c55e036157288f2e806ec0187b0168967b5f77b6 Mon Sep 17 00:00:00 2001 From: Piotr Piotrowski Date: Tue, 17 Dec 2024 16:25:00 +0100 Subject: [PATCH] [FIXED] Add missing nats prefix to error --- js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js.go b/js.go index ccc148106..946753887 100644 --- a/js.go +++ b/js.go @@ -1527,7 +1527,7 @@ func processConsInfo(info *ConsumerInfo, userCfg *ConsumerConfig, isPullMode boo func checkConfig(s, u *ConsumerConfig) error { makeErr := func(fieldName string, usrVal, srvVal any) error { - return fmt.Errorf("configuration requests %s to be %v, but consumer's value is %v", fieldName, usrVal, srvVal) + return fmt.Errorf("nats: configuration requests %s to be %v, but consumer's value is %v", fieldName, usrVal, srvVal) } if u.Durable != _EMPTY_ && u.Durable != s.Durable {