lib/global_session/session/v3.rb in global_session-3.0.1 vs lib/global_session/session/v3.rb in global_session-3.0.2
- old
+ new
@@ -251,10 +251,10 @@
begin
array, signature = self.class.decode_cookie(cookie)
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
_ = hash['v']