fixed line num on errors always being 0