Add line numbers to error messages