diff --git a/makedoc/tasks.py b/makedoc/tasks.py index 0ce784e..44ef499 100644 --- a/makedoc/tasks.py +++ b/makedoc/tasks.py @@ -16,7 +16,7 @@ def delete_files(): try: if os.path.isdir(item_path): shutil.rmtree(item_path) - except Exception: + except Exception as e: return f"Failed to delete {item_path}. Reason {e}" return "Successfully deleted all user folders"