diff --git a/pool.go b/pool.go index c4629d7..b383e77 100644 --- a/pool.go +++ b/pool.go @@ -110,7 +110,7 @@ func (c *Client) PoolDelete(opts types.DeleteOptions) error { return ErrPoolInUse } } - return nil + return err } defer resp.Body.Close() return nil diff --git a/rule.go b/rule.go index fc92d15..af1dc19 100644 --- a/rule.go +++ b/rule.go @@ -134,7 +134,7 @@ func (c *Client) RuleDelete(opts types.DeleteOptions) error { return ErrRuleInUse } } - return nil + return err } defer resp.Body.Close() return nil