Checks for compilation errors.