cleanup error messages

This commit is contained in:
Joel Wetzell
2026-02-09 19:15:34 -06:00
parent 988437fccf
commit 6b178d1ae4
6 changed files with 9 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ func init() {
urlString, ok := url.(string)
if !ok {
return nil, errors.New("nats.client url must be string")
return nil, errors.New("nats.client url must be a string")
}
subject, ok := params["subject"]
@@ -48,7 +48,7 @@ func init() {
subjectString, ok := subject.(string)
if !ok {
return nil, errors.New("nats.client subject must be string")
return nil, errors.New("nats.client subject must be a string")
}
return &NATSClient{config: config, URL: urlString, Subject: subjectString, logger: CreateLogger(config)}, nil