File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,12 @@ def dump_exception(exception)
63
63
def pretty ( env , exception )
64
64
req = Rack ::Request . new ( env )
65
65
66
- # This double assignment is to prevent an "unused variable" warning on
67
- # Ruby 1.9.3. Yes, it is dumb, but I don't like Ruby yelling at me.
66
+ # This double assignment is to prevent an "unused variable" warning.
67
+ # Yes, it is dumb, but I don't like Ruby yelling at me.
68
68
path = path = ( req . script_name + req . path_info ) . squeeze ( "/" )
69
69
70
- # This double assignment is to prevent an "unused variable" warning on
71
- # Ruby 1.9.3. Yes, it is dumb, but I don't like Ruby yelling at me.
70
+ # This double assignment is to prevent an "unused variable" warning.
71
+ # Yes, it is dumb, but I don't like Ruby yelling at me.
72
72
frames = frames = exception . backtrace . map { |line |
73
73
frame = OpenStruct . new
74
74
if line =~ /(.*?):(\d +)(:in `(.*)')?/
Original file line number Diff line number Diff line change @@ -23,14 +23,14 @@ def call(env)
23
23
24
24
# client or server error, or explicit message
25
25
if ( status . to_i >= 400 && empty ) || env [ RACK_SHOWSTATUS_DETAIL ]
26
- # This double assignment is to prevent an "unused variable" warning on
27
- # Ruby 1.9.3. Yes, it is dumb, but I don't like Ruby yelling at me.
26
+ # This double assignment is to prevent an "unused variable" warning.
27
+ # Yes, it is dumb, but I don't like Ruby yelling at me.
28
28
req = req = Rack ::Request . new ( env )
29
29
30
30
message = Rack ::Utils ::HTTP_STATUS_CODES [ status . to_i ] || status . to_s
31
31
32
- # This double assignment is to prevent an "unused variable" warning on
33
- # Ruby 1.9.3. Yes, it is dumb, but I don't like Ruby yelling at me.
32
+ # This double assignment is to prevent an "unused variable" warning.
33
+ # Yes, it is dumb, but I don't like Ruby yelling at me.
34
34
detail = detail = env [ RACK_SHOWSTATUS_DETAIL ] || message
35
35
36
36
body = @template . result ( binding )
You can’t perform that action at this time.
0 commit comments