File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ type temporary struct {
64
64
error
65
65
}
66
66
67
+ func (t temporary ) Unwrap () error { return t .error }
67
68
func (t temporary ) Cause () error { return t .error }
68
69
func (t temporary ) Temporary () bool { return true }
69
70
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ import (
16
16
engineapi "github.com/docker/docker/client"
17
17
"github.com/docker/go-connections/nat"
18
18
gogotypes "github.com/gogo/protobuf/types"
19
+ "github.com/pkg/errors"
20
+ "golang.org/x/time/rate"
21
+
19
22
"github.com/moby/swarmkit/v2/agent/exec"
20
23
"github.com/moby/swarmkit/v2/api"
21
24
"github.com/moby/swarmkit/v2/log"
22
- "github.com/pkg/errors"
23
- "golang.org/x/time/rate"
24
25
)
25
26
26
27
// controller implements agent.Controller against docker's API.
@@ -597,6 +598,10 @@ func (e *exitError) Cause() error {
597
598
return e .cause
598
599
}
599
600
601
+ func (e * exitError ) Unwrap () error {
602
+ return e .cause
603
+ }
604
+
600
605
func makeExitError (ctnr types.ContainerJSON ) error {
601
606
if ctnr .State .ExitCode != 0 {
602
607
var cause error
You can’t perform that action at this time.
0 commit comments