Skip to content

Commit

Permalink
Merge pull request #69 from gocardless/dependabot/bundler/gc_ruboconf…
Browse files Browse the repository at this point in the history
…ig-eq-2.4.0

Update gc_ruboconfig requirement from = 2.3.14 to = 2.4.0
  • Loading branch information
Harry Maclean authored Jun 13, 2019
2 parents 7c0451f + dd52cb5 commit cd89ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coach.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "actionpack", ">= 4.2"
spec.add_dependency "activesupport", ">= 4.2"

spec.add_development_dependency "gc_ruboconfig", "= 2.3.14"
spec.add_development_dependency "gc_ruboconfig", "= 2.4.0"
spec.add_development_dependency "pry", "~> 0.10"
spec.add_development_dependency "rspec", "~> 3.2"
spec.add_development_dependency "rspec-its", "~> 1.2"
Expand Down
6 changes: 3 additions & 3 deletions lib/coach/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class Handler
def initialize(middleware, config = {})
@root_item = MiddlewareItem.new(middleware, config)
validate!
rescue Coach::Errors::MiddlewareDependencyNotMet => error
rescue Coach::Errors::MiddlewareDependencyNotMet => e
# Remove noise of validation stack trace, reset to the handler callsite
error.backtrace.clear.concat(Thread.current.backtrace)
raise error
e.backtrace.clear.concat(Thread.current.backtrace)
raise e
end

# Run validation on the root of the middleware chain
Expand Down

0 comments on commit cd89ad4

Please sign in to comment.