class ActionView::SyntaxErrorInTemplate

def message

def message
  if template.is_a?(Template::Inline)
    <<~MESSAGE
      Encountered a syntax error while rendering template: check #{@offending_code_string}
    MESSAGE
  else
    "Encountered a syntax error while rendering template located at: #{template.short_identifier}"
  end
end