fix error handling in sequential cython runs
[cython.git] / Cython / Compiler / Main.py
index 2e283d8d92a0d0ac36bcdeecd2eed1c6eabf2919..fcc1d68f1ce607abe81bdf5be1da9342be81201a 100644 (file)
@@ -510,6 +510,7 @@ class Context(object):
         return ".".join(names)
 
     def setup_errors(self, options, result):
+        Errors.reset() # clear any remaining error state
         if options.use_listing_file:
             result.listing_file = Utils.replace_suffix(source, ".lis")
             path = result.listing_file