Add line number to error messages