Skip to content

Commit

Permalink
mozzle: Return actual error on closing firehose
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo0mer committed May 3, 2017
1 parent 1c858e7 commit b0d23a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func Monitor(ctx context.Context, t Target, e Emitter) (err error) {
firehose := consumer.New(info.DopplerEndpoint, tlsConfig, nil)
defer func() {
if cerr := firehose.Close(); cerr != nil && err == nil {
cerr = err
err = cerr
}
}()

Expand Down

0 comments on commit b0d23a1

Please sign in to comment.