mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Wrap response error for container logs method.
Signed-off-by: Emil Davtyan <emil2k@gmail.com>
This commit is contained in:
@@ -74,7 +74,7 @@ func (cli *Client) ContainerLogs(ctx context.Context, container string, options
|
||||
|
||||
resp, err := cli.get(ctx, "/containers/"+container+"/logs", query, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, wrapResponseError(err, resp, "container", container)
|
||||
}
|
||||
return resp.body, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user