mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
annoted_source_code may return nil if an error happens during template compiling.
This commit is contained in:
parent
aaec007292
commit
6e41cfb4e9
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ module ActionDispatch
|
|||
|
||||
ActiveSupport::Deprecation.silence do
|
||||
message = "\n#{exception.class} (#{exception.message}):\n"
|
||||
message << exception.annoted_source_code if exception.respond_to?(:annoted_source_code)
|
||||
message << exception.annoted_source_code.to_s if exception.respond_to?(:annoted_source_code)
|
||||
message << " " << application_trace(exception).join("\n ")
|
||||
logger.fatal("#{message}\n\n")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue