Skip to content

Commit

Permalink
Raise exception with the service name
Browse files Browse the repository at this point in the history
  • Loading branch information
prognostikos committed Sep 29, 2023
1 parent 7650bdb commit 9c6026f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added

- CI using GitHub Actions for non-eol Ruby versions
- add an exception message to BreakerOpen exception with the service name

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion lib/cb2/breaker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def initialize(options)

def run
if open?
raise CB2::BreakerOpen
raise CB2::BreakerOpen.new("#{service} breaker open")
end

begin
Expand Down

0 comments on commit 9c6026f

Please sign in to comment.