diff --git a/module.cpp b/module.cpp index 570c124c..9cde7399 100644 --- a/module.cpp +++ b/module.cpp @@ -3248,6 +3248,9 @@ Module::CompileAndOutput(const char *srcFile, } } errorCount += m->errorCount; + if (errorCount != 0) { + return 1; + } // Only write the generate header file, if desired, the first // time through the loop here.