1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Differentiate source directory is empty errors (#1113)

This commit is contained in:
Alex Xu
2025-10-14 14:13:36 -07:00
committed by GitHub
parent 6acdebae3c
commit ef44f6f285
2 changed files with 2 additions and 2 deletions

View File

@@ -650,7 +650,7 @@ def imgDirectoryProcessing(path):
raise RuntimeError("One of workers crashed. Cause: " + workerOutput[0][0], workerOutput[0][1])
else:
rmtree(os.path.join(path, '..', '..'), True)
raise UserWarning("Source directory is empty.")
raise UserWarning("C2E: Source directory is empty.")
def imgFileProcessingTick(output):

View File

@@ -286,7 +286,7 @@ def main(argv=None, qtgui=None):
move(targetDir, sourceDir)
else:
rmtree(targetDir, True)
raise UserWarning("Source directory is empty.")
raise UserWarning("C2P: Source directory is empty.")
else:
raise UserWarning("Provided input is not a directory.")
else: