add line numbers to errors