Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry committed Oct 17, 2023
1 parent 24e71d4 commit e456782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/cmd/instance/beat.go
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ func (b *Beat) registerESVersionCheckCallback() error {
esVersion := conn.GetVersion()
beatVersion, err := libversion.New(b.Info.Version)
if err != nil {
return fmt.Errorf("error fetching version from elasticsearch")
return fmt.Errorf("error fetching version from elasticsearch: %w", err)
}
if esVersion.LessThanMajorMinor(beatVersion) {
return fmt.Errorf("%w ES=%s, Beat=%s", elasticsearch.ErrTooOld, esVersion.String(), b.Info.Version)
Expand Down

0 comments on commit e456782

Please sign in to comment.