Permalink
Browse files

Fixed formatting string for newer Ruby (> 1.8.4)

  • Loading branch information...
1 parent dc22383 commit 58449442da470c98e08cd4ec5f1e71f02bbbac22 Joshua Clayton committed Mar 28, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/logged_exception.rb
@@ -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")

0 comments on commit 5844944

Please sign in to comment.