Track generation of errors and halt compilation appropriately