client: don't hide context errors
Instead of reformatting error from the request action, we wrap it, allowing the cause to be recovered. This is important for consumers that need to be able to detect context errors, such as `Cancelled` and `DeadlineExceeded`. Signed-off-by: Stephen J Day <stephen.day@docker.com> Upstream-commit: 8e5ef8af5c90a3fbc93173cb485d42e044ca56ae Component: engine
This commit is contained in:
@ -2662,7 +2662,7 @@ func (s *DockerSuite) TestRunTLSverify(c *check.C) {
|
||||
// Regardless of whether we specify true or false we need to
|
||||
// test to make sure tls is turned on if --tlsverify is specified at all
|
||||
result := dockerCmdWithResult("--tlsverify=false", "ps")
|
||||
result.Assert(c, icmd.Expected{ExitCode: 1, Err: "trying to connect"})
|
||||
result.Assert(c, icmd.Expected{ExitCode: 1, Err: "error during connect"})
|
||||
|
||||
result = dockerCmdWithResult("--tlsverify=true", "ps")
|
||||
result.Assert(c, icmd.Expected{ExitCode: 1, Err: "cert"})
|
||||
|
||||
Reference in New Issue
Block a user