add error check for filepath length check

This commit is contained in:
Alex Xu committed 2025-05-23 10:48:31 -07:00
1 parent dc711e671d
commit be07e0df6a
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -424,6 +424,8 @@ class WorkerThread(QThread):
MW.addMessage.emit('Created EPUB file was too big.', 'error', False)
MW.addMessage.emit('EPUB file: ' + str(epubSize) + 'MB. Supported size: ~350MB.', 'error',
False)
if self.kindlegenErrorCode[0] == 3221226505:
MW.addMessage.emit('Unknown Windows error. Possibly filepath too long?', 'error', False)
else:
for item in outputPath:
if GUI.targetDirectory and GUI.targetDirectory != os.path.dirname(item):