Added line number tracking to error reports