We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed8b145 commit 065b73aCopy full SHA for 065b73a
receiver/mongodbatlasreceiver/config.go
@@ -133,7 +133,7 @@ var (
133
errMaxPageSize = errors.New("the maximum value for 'page_size' is 20000")
134
135
// Config Errors
136
- errConfigEmptyEndpoint = errors.New("endpoint must not be empty")
+ errConfigEmptyEndpoint = errors.New("endpoint must not be empty")
137
)
138
139
func (c *Config) Validate() error {
@@ -268,7 +268,7 @@ func validateEndpoint(endpoint string) error {
268
return fmt.Errorf(`invalid scheme %q, expected "http" or "https"`, u.Scheme)
269
}
270
if u.Host == "" {
271
- return fmt.Errorf("host must not be empty")
+ return errors.New("host must not be empty")
272
273
return nil
274
0 commit comments