mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
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:
commit
9eb68dcce5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue