Permalink
Browse files

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

  • Loading branch information...
raggi committed Dec 17, 2011
1 parent 4a9e22d commit 3cb1ce3cd2f3e071d62d9151d3b8dd4922b382e1
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rack/request.rb
View
@@ -262,7 +262,8 @@ def cookies
@env["rack.request.cookie_string"] = string
hash
rescue => error
- raise error.class, "cannot parse Cookie header: #{error.message}"
+ error.message.replace "cannot parse Cookie header: #{error.message}"
+ raise
end
def xhr?

0 comments on commit 3cb1ce3

Please sign in to comment.