Show up to 5 surrounding lines in parser errors.

This commit is contained in:
Yorick Peterse 2014-03-20 23:40:25 +01:00
parent 91fb7523fd
commit a20ec0000a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ end
lines = ''
# 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]
if line