Show up to 5 surrounding lines in parser errors.
This commit is contained in:
parent
91fb7523fd
commit
a20ec0000a
|
@ -150,7 +150,7 @@ end
|
||||||
lines = ''
|
lines = ''
|
||||||
|
|
||||||
# Show up to 2 lines before and after the offending line (if they exist).
|
# Show up to 2 lines before and after the offending line (if they exist).
|
||||||
(-2..2).each do |offset|
|
(-5..5).each do |offset|
|
||||||
line = @lines[index + offset]
|
line = @lines[index + offset]
|
||||||
|
|
||||||
if line
|
if line
|
||||||
|
|
Loading…
Reference in New Issue