Ensure build errors are reported correctly.