Merge pull request #14 from wrzasa/master

More informative error message when cannot load a store (rebased on current master)
This commit is contained in:
Akinori MUSHA 2016-12-09 21:52:51 +09:00 committed by GitHub
commit 9eb68dcce5

View file

@ -17,8 +17,8 @@ class HTTP::CookieJar::AbstractStore
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