Skip to content

Commit

Permalink
Fixed formatting string for newer Ruby (> 1.8.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Clayton committed Mar 28, 2008
1 parent dc22383 commit 5844944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logged_exception.rb
Expand Up @@ -36,7 +36,7 @@ def request=(request)
else
max = request.env.keys.max { |a,b| a.length <=> b.length }
env = request.env.keys.sort.inject [] do |env, key|
env << '* ' + ("%*-s: %s" % [max.length, key, request.env[key].to_s.strip])
env << '* ' + ("%-*s: %s" % [max.length, key, request.env[key].to_s.strip])
end
write_attribute(:environment, (env << "* Process: #{$$}" << "* Server : #{self.class.host_name}") * "\n")

Expand Down

0 comments on commit 5844944

Please sign in to comment.