diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-12-05 11:24:28 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-05 11:24:28 -0600 |
commit | 731dcd84048ef259684cc8005101f65d1941e495 (patch) | |
tree | 02b05367d813fccc777885faa06600a355532ba9 /actionpack/lib/action_view/base.rb | |
parent | 9c9da6c892d715ca22c3cf51f50deb1d80029c66 (diff) | |
download | rails-731dcd84048ef259684cc8005101f65d1941e495.tar.gz rails-731dcd84048ef259684cc8005101f65d1941e495.tar.bz2 rails-731dcd84048ef259684cc8005101f65d1941e495.zip |
Silence server backtrace in rescue templates and log files. Also remove some noise from missing template errors.
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r-- | actionpack/lib/action_view/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index b8a5d39b20..1cd8c05225 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -5,7 +5,7 @@ module ActionView #:nodoc: class MissingTemplate < ActionViewError #:nodoc: def initialize(paths, path, template_format = nil) full_template_path = path.include?('.') ? path : "#{path}.erb" - display_paths = paths.join(':') + display_paths = paths.compact.join(":") template_type = (path =~ /layouts/i) ? 'layout' : 'template' super("Missing #{template_type} #{full_template_path} in view path #{display_paths}") end |