Don't report a context cancelation as an error

This commit is contained in:
Dane Everitt
2020-11-10 20:36:40 -08:00
parent 20ece60a72
commit 34349d4b48
2 changed files with 7 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ func (e *Environment) pollResources(ctx context.Context) error {
for {
select {
case <-ctx.Done():
return ctx.Err()
return errors.WithStackIf(ctx.Err())
default:
var v *types.StatsJSON