Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise a useful error when reconnecting with a circuit breaker (#145)
* Raise a useful error when reconnecting with a circuit breaker If you have reconnects enabled, and a circuit breaker configured, it's useful to raise the actual underlying error when we actually attempted the connection instead of simply the circuit breaker error. The circuit breaker error will still be raised if no attempts were tried. * Use descriptive name for error. Co-authored-by: Jean Boussier <jean.boussier@gmail.com> * Tweak preferred_error assignment Co-authored-by: Jean Boussier <jean.boussier@gmail.com> --------- Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
- Loading branch information