vendor/plugins/haml/lib/haml/error.rb in radiant-0.6.7 vs vendor/plugins/haml/lib/haml/error.rb in radiant-0.6.8
- old
+ new
@@ -3,16 +3,15 @@
class Error < Exception
# :stopdoc:
# By default, an error is taken to refer to the line of the template
# that was being processed when the exception was raised.
- # However, if line_offset is non-zero, it's added to that line number
- # to get the line to report for the error.
- attr_reader :line_offset
+ # However, if line is non-nil, it + 1 is used instead.
+ attr_reader :line
- def initialize(message = nil, line_offset = 0)
+ def initialize(message = nil, line = nil)
super(message)
- @line_offset = line_offset
+ @line = line
end
# :startdoc:
end
# SyntaxError is the type of exception raised when Haml encounters an