Skip to content

[23.0 backport] client: improve error messaging on crash#44883

Merged
thaJeztah merged 1 commit intomoby:23.0from
thaJeztah:23.0_backport_invalid_character
Jan 31, 2023
Merged

[23.0 backport] client: improve error messaging on crash#44883
thaJeztah merged 1 commit intomoby:23.0from
thaJeztah:23.0_backport_invalid_character

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Repro steps:

  • Run Docker Desktop
  • Run docker run busybox tail -f /dev/null
  • Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

error waiting for container: invalid character 's' looking for beginning of value

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

error waiting for container: copying response body from Docker: unexpected EOF

which is a bit more explicit.

(cherry picked from commit 9900c7a)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Repro steps:
- Run Docker Desktop
- Run `docker run busybox tail -f /dev/null`
- Run `pkill "Docker Desktop"

Expected:
An error message that indicates that Docker Desktop is shutting down.

Actual:
An error message that looks like this:

```
error waiting for container: invalid character 's' looking for beginning of value
```

here's an example:

docker/for-mac#6575 (comment)

After this change, you get an error message like:

```
error waiting for container: copying response body from Docker: unexpected EOF
```

which is a bit more explicit.

Signed-off-by: Nick Santos <nick.santos@docker.com>
(cherry picked from commit 9900c7a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Copy Markdown
Member Author

Let me bring this one in 👍

@thaJeztah thaJeztah merged commit 9df87ea into moby:23.0 Jan 31, 2023
@thaJeztah thaJeztah deleted the 23.0_backport_invalid_character branch January 31, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants