Fixed the reporting of compilation errors