From ce05cf3a0e9baf5b730a06474bbb85efc0ab5f20 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Sat, 28 Dec 2024 13:57:41 -0800 Subject: [PATCH] [chore] Improve queue config validation messages Signed-off-by: Bogdan Drutu --- exporter/exporterqueue/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exporter/exporterqueue/config.go b/exporter/exporterqueue/config.go index b8a2c01e5bb..538c08b08d8 100644 --- a/exporter/exporterqueue/config.go +++ b/exporter/exporterqueue/config.go @@ -39,10 +39,10 @@ func (qCfg *Config) Validate() error { return nil } if qCfg.NumConsumers <= 0 { - return errors.New("number of consumers must be positive") + return errors.New("`num_consumers` must be positive") } if qCfg.QueueSize <= 0 { - return errors.New("queue size must be positive") + return errors.New("`queue_size` must be positive") } return nil }