Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes issue where errors were not being added
Browse files Browse the repository at this point in the history
Fixes issue where errors were not being added correctly in
SubscribeDeps. When gatherCollectors() errored these errors were being
ignored.
  • Loading branch information
IRCody committed Apr 21, 2016
1 parent 388e91d commit 65280b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ func (p *pluginControl) SubscribeDeps(taskID string, mts []core.Metric, plugins
var serrs []serror.SnapError
collectors, errs := p.gatherCollectors(mts)
if len(errs) > 0 {
serrs = append(serrs)
serrs = append(serrs, errs...)
}

for _, gc := range collectors {
Expand Down

0 comments on commit 65280b2

Please sign in to comment.