Check #error in first pass and abort immediately