Skip to content

Commit

Permalink
fix(auditbeat): eventreader compile error on unsupported system (elas…
Browse files Browse the repository at this point in the history
…tic#41035)

NewEventReader should return two values
  • Loading branch information
kruskall authored Sep 28, 2024
1 parent 22540a0 commit caf09cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auditbeat/module/file_integrity/eventreader_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ import (
)

func NewEventReader(c Config, logger *logp.Logger) (EventProducer, error) {
return errors.New("file auditing metricset is not implemented on this system")
return nil, errors.New("file auditing metricset is not implemented on this system")
}

0 comments on commit caf09cb

Please sign in to comment.