Skip to content
This repository
Browse code

Don't modify the backtrace, because that makes debugging crazy-difficult

  • Loading branch information...
commit 3cb1ce3cd2f3e071d62d9151d3b8dd4922b382e1 1 parent 4a9e22d
James Tucker raggi authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  lib/rack/request.rb
3  lib/rack/request.rb
@@ -262,7 +262,8 @@ def cookies
262 262 @env["rack.request.cookie_string"] = string
263 263 hash
264 264 rescue => error
265   - raise error.class, "cannot parse Cookie header: #{error.message}"
  265 + error.message.replace "cannot parse Cookie header: #{error.message}"
  266 + raise
266 267 end
267 268
268 269 def xhr?

0 comments on commit 3cb1ce3

Please sign in to comment.
Something went wrong with that request. Please try again.