Skip to content

Commit

Permalink
Don't fail silently on unrecognised error conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
J.C.Reid committed Feb 6, 2019
1 parent 29374b2 commit b13440b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (c *Client) PoolDelete(opts types.DeleteOptions) error {
return ErrPoolInUse
}
}
return nil
return err
}
defer resp.Body.Close()
return nil
Expand Down
2 changes: 1 addition & 1 deletion rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (c *Client) RuleDelete(opts types.DeleteOptions) error {
return ErrRuleInUse
}
}
return nil
return err
}
defer resp.Body.Close()
return nil
Expand Down

0 comments on commit b13440b

Please sign in to comment.