From e083b6f9b50cca950aa8fa7d785f91e9e868e35d Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 25 May 2020 13:01:12 +0200 Subject: [PATCH] [core] Show error if game installation could not be deleted Kinda fixes #44 --- legendary/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legendary/core.py b/legendary/core.py index 2e0af56..54da6fe 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -752,7 +752,8 @@ class LegendaryCore: def uninstall_game(self, installed_game: InstalledGame, delete_files=True): self.lgd.remove_installed_game(installed_game.app_name) if delete_files: - delete_folder(installed_game.install_path, recursive=True) + if not delete_folder(installed_game.install_path, recursive=True): + self.log.error(f'Unable to delete "{installed_game.install_path}" from disk, please remove manually.') def prereq_installed(self, app_name): igame = self.lgd.get_installed_game(app_name)