atc0005 / go-nagios

Shared Golang package for Nagios plugins
MIT License
8 stars 3 forks source link

Explicitly document that `(nagios.Plugin).AddError` does not perform deduplication of errors #212

Closed atc0005 closed 1 year ago

atc0005 commented 1 year ago

Current implementation:

https://github.com/atc0005/go-nagios/blob/7696b6337871d7d403e2fbf88183c3892693aca8/nagios.go#L368-L371

We note that errors are appended to the collection, but not that they're appended as-is without deduplication.