aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorSamuel Cochran <sj26@sj26.com>2018-11-29 09:14:24 +1100
committerSamuel Cochran <sj26@sj26.com>2018-11-29 09:14:24 +1100
commitacbc0e0467e7d4b7075c7b2df6404d807ba7d06c (patch)
tree775f7567e95c0637b711e7eb81537cf50e1effd4 /actionpack
parent0b2c49aa4dad73d2af098bbbd545c05ed2ace3cd (diff)
downloadrails-acbc0e0467e7d4b7075c7b2df6404d807ba7d06c.tar.gz
rails-acbc0e0467e7d4b7075c7b2df6404d807ba7d06c.tar.bz2
rails-acbc0e0467e7d4b7075c7b2df6404d807ba7d06c.zip
Avoid extra array allocations
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/middleware/debug_exceptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
index 61e7e73a68..7669767ae3 100644
--- a/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
+++ b/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb
@@ -183,9 +183,9 @@ module ActionDispatch
message = []
message << " "
message << "#{exception.class} (#{exception.message}):"
- message += exception.annoted_source_code if exception.respond_to?(:annoted_source_code)
+ message.concat(exception.annoted_source_code) if exception.respond_to?(:annoted_source_code)
message << " "
- message += trace
+ message.concat(trace)
log_array(logger, message)
end