handling compile errors so they print at the end like failures