From bf63886de4c7fff252edd1e84b0d836067718354 Mon Sep 17 00:00:00 2001
From: Roger Pack
- Showing <%=h @exception.file_name %> where line #<%=h @exception.line_number %> raised:
+ Showing <%=h @exception.file_name %> where line #<%=h @exception.line_number %> raised:
<%=h @exception.message %>
Extracted source (around line #<%=h @exception.line_number %>): -
<%=h @exception.source_extract %>
+<%- line_regex = Regexp.new("^#{@exception.line_number}:") -%>
+<%- @exception.source_extract.each_line do |line|
+ if line =~ line_regex
+ %><%=h line %><%
+ else
+ %><%=h line %><%
+ end
+ end -%>
<%=h @exception.sub_template_message %>
-- 1.5.5.1