Skip to content

Commit

Permalink
[chore] Improve queue config validation messages
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu committed Dec 28, 2024
1 parent ffcef93 commit ce05cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/exporterqueue/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ce05cf3

Please sign in to comment.