Skip to content

Commit

Permalink
Merge pull request #14 from wrzasa/master
Browse files Browse the repository at this point in the history
More informative error message when cannot load a store (rebased on current master)
  • Loading branch information
knu committed Dec 9, 2016
2 parents 24b5d40 + f828cf0 commit 9eb68dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http/cookie_jar/abstract_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def implementation(symbol)
begin
require 'http/cookie_jar/%s_store' % symbol
@@class_map.fetch(symbol)
rescue LoadError, IndexError
raise IndexError, 'cookie store unavailable: %s' % symbol.inspect
rescue LoadError, IndexError => e
raise IndexError, 'cookie store unavailable: %s, error: %s' % symbol.inspect, e.message
end
end

Expand Down

0 comments on commit 9eb68dc

Please sign in to comment.