-- x = error msg; get rid of ???
x = x:strmatch "[^:]+:[0-9]+: (.*)" or x
local li = lx:lineinfo_left()
- error(string.format("Parsing error in %s line %s, column %i, char %s: \n%s",
- name or "<nofilename>", li[1], li[2], li[3], x))
+ error (string.format (
+ "Parsing error in %s line %s, column %i, char %s: \n%s",
+ name or "<nofilename>", li[1], li[2], li[3], x), 2)
return nil
end