Skip to content

Commit

Permalink
Update mongo/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
  • Loading branch information
prestonvasquez and matthewdale committed May 1, 2024
1 parent b191ec7 commit 755204f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func newClient(opts ...*options.ClientOptions) (*Client, error) {
}
// Timeout
if to := clientOpt.Timeout; to != nil && *to < 0 {
return nil, fmt.Errorf("invalid value for \"timeout\": %q", *to)
return nil, fmt.Errorf(`invalid value %q for "Timeout": value must be positive", *to)
}
client.timeout = clientOpt.Timeout
client.httpClient = clientOpt.HTTPClient
Expand Down

0 comments on commit 755204f

Please sign in to comment.