From b13440b70b4f6678e399e14da0a2b1db3e680cc8 Mon Sep 17 00:00:00 2001 From: "J.C.Reid" Date: Wed, 6 Feb 2019 14:49:50 +0000 Subject: [PATCH] Don't fail silently on unrecognised error conditions --- pool.go | 2 +- rule.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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