method
parse_message_for_trace
rails latest stable - Class:
ActiveSupport::SyntaxErrorProxy
parse_message_for_trace()private
No documentation available.
# File activesupport/lib/active_support/syntax_error_proxy.rb, line 47
def parse_message_for_trace
if source_location_eval?
# If the exception is coming from a call to eval, we need to keep
# the path of the file in which eval was called to ensure we can
# return the right source fragment to show the location of the
# error
location = __getobj__.backtrace_locations[0]
["#{location.path}:#{location.lineno}: #{__getobj__}"]
else
__getobj__.to_s.split("\n")
end
end