File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ type temporary struct {
6464 error
6565}
6666
67+ func (t temporary ) Unwrap () error { return t .error }
6768func (t temporary ) Cause () error { return t .error }
6869func (t temporary ) Temporary () bool { return true }
6970
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ import (
1616 engineapi "github.com/docker/docker/client"
1717 "github.com/docker/go-connections/nat"
1818 gogotypes "github.com/gogo/protobuf/types"
19+ "github.com/pkg/errors"
20+ "golang.org/x/time/rate"
21+
1922 "github.com/moby/swarmkit/v2/agent/exec"
2023 "github.com/moby/swarmkit/v2/api"
2124 "github.com/moby/swarmkit/v2/log"
22- "github.com/pkg/errors"
23- "golang.org/x/time/rate"
2425)
2526
2627// controller implements agent.Controller against docker's API.
@@ -597,6 +598,10 @@ func (e *exitError) Cause() error {
597598 return e .cause
598599}
599600
601+ func (e * exitError ) Unwrap () error {
602+ return e .cause
603+ }
604+
600605func makeExitError (ctnr types.ContainerJSON ) error {
601606 if ctnr .State .ExitCode != 0 {
602607 var cause error
You can’t perform that action at this time.
0 commit comments