mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Cleanup client not found errors.
And fix remove calls to return a notFound error Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
@@ -9,5 +9,5 @@ func (cli *Client) SecretRemove(ctx context.Context, id string) error {
|
||||
}
|
||||
resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil)
|
||||
ensureReaderClosed(resp)
|
||||
return err
|
||||
return wrapResponseError(err, resp, "secret", id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user