use AddError everywhere (#2372)
This commit is contained in:
committed by
Daniel Nelson
parent
801f6cb8a0
commit
06baf7cf78
@@ -47,9 +47,7 @@ func (z *Zookeeper) Gather(acc telegraf.Accumulator) error {
|
||||
}
|
||||
|
||||
for _, serverAddress := range z.Servers {
|
||||
if err := z.gatherServer(serverAddress, acc); err != nil {
|
||||
return err
|
||||
}
|
||||
acc.AddError(z.gatherServer(serverAddress, acc))
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user