close
Skip to content

Wrap response errors for container copy methods.#35979

Merged
cpuguy83 merged 1 commit into
moby:masterfrom
emil2k:fix-container-copy-err
Jan 25, 2018
Merged

Wrap response errors for container copy methods.#35979
cpuguy83 merged 1 commit into
moby:masterfrom
emil2k:fix-container-copy-err

Conversation

@emil2k

@emil2k emil2k commented Jan 11, 2018

Copy link
Copy Markdown
Contributor

- What I did / How I did it

I wrapped response errors for /containers/{id}/archive requests so that IsErrNotFound and IsErrNotImplemented could work as intended.

- How to verify it

Tests added.

- Description for the changelog

Fixed error detection using IsErrNotFound and IsErrNotImplemented for ContainerStatPath, CopyFromContainer, and CopyToContainer methods.

baby hedgehog near melon

This allows IsErrNotFound and IsErrNotImplemented to work as intended.

Signed-off-by: Emil Davtyan <emil2k@gmail.com>
@emil2k emil2k force-pushed the fix-container-copy-err branch from 373da54 to 44369bd Compare January 11, 2018 12:41

@dnephin dnephin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yongtang

Copy link
Copy Markdown
Member

/cc @cpuguy83 to take a look.

@cpuguy83 cpuguy83 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83 cpuguy83 merged commit 1d1845d into moby:master Jan 25, 2018
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.

5 participants