lib/global_session/session/v2.rb in global_session-3.0.1 vs lib/global_session/session/v2.rb in global_session-3.0.2
- old
+ new
@@ -235,10 +235,10 @@
begin
msgpack = GlobalSession::Encoding::Base64Cookie.load(cookie)
array = GlobalSession::Encoding::Msgpack.load(msgpack)
hash = attribute_array_to_hash(array)
rescue Exception => e
- mc = GlobalSession::MalformedCookie.new("Caused by #{e.class.name}: #{e.message}")
+ mc = GlobalSession::MalformedCookie.new("Caused by #{e.class.name}: #{e.message}", cookie)
mc.set_backtrace(e.backtrace)
raise mc
end
id = hash['id']