--- a/src/eric7/eric7_doc.py Mon Feb 06 10:02:35 2023 +0100 +++ b/src/eric7/eric7_doc.py Mon Feb 06 10:09:18 2023 +0100 @@ -421,6 +421,7 @@ continue try: + print("Processing", file) module = ModuleParser.readModule( file, basename=basename, @@ -435,6 +436,13 @@ except ImportError as v: sys.stderr.write("{0} error: {1}\n".format(file, v)) continue + except Exception as ex: + sys.stderr.write( + "{0} error while parsing: {1}\n".format( + file, str(ex) + ) + ) + raise f = FileSystemUtilities.joinext( os.path.join(outputDir, moduleDocument.name()), ".html" @@ -458,9 +466,21 @@ out.write(doc) except OSError as v: sys.stderr.write("{0} error: {1}\n".format(file, v[1])) + except Exception as ex: + sys.stderr.write( + "{0} error while writing: {1}\n".format( + file, str(ex) + ) + ) + raise else: sys.stdout.write("{0} ok\n".format(f)) + sys.stdout.flush() + sys.stderr.flush() + + sys.stdout.write("code documentation generated") + sys.stdout.flush() sys.stderr.flush()