Skip to content

Commit

Permalink
metricbeat/module/mongodb: improve error string
Browse files Browse the repository at this point in the history
  • Loading branch information
shmsr committed Jan 9, 2025
1 parent 9b93aca commit f22a6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metricbeat/module/mongodb/replstatus/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func getReplicationInfo(client *mongo.Client) (*oplogInfo, error) {
collection := db.Collection(oplogCol)
firstTs, lastTs, err := getOpTimestamp(collection)
if err != nil {
return nil, err
return nil, fmt.Errorf("could not get operation timestamps from oplog: %w", err)
}

info := &oplogInfo{
Expand Down

0 comments on commit f22a6ff

Please sign in to comment.