From 95dae163d9b4212ecaedc1ea35f497f2f55a4eca Mon Sep 17 00:00:00 2001 From: raphael60650 Date: Sat, 31 Jul 2021 09:10:51 +0200 Subject: [PATCH] detailled log error with information about ./file/ directory and game information --- source/Gui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/Gui.py b/source/Gui.py index 8eb3d50..89e6067 100644 --- a/source/Gui.py +++ b/source/Gui.py @@ -204,7 +204,11 @@ class Gui: """ error = traceback.format_exc() with open("./error.log", "a") as f: - f.write(f"---\n{error}\n") + f.write(f"---\n" + f"For game version : {self.game.ctconfig.version}\n" + f"./file/ directory : {os.listdir('./file/')}" + f"GAME/files/ information : {self.game.path, self.game.region}" + f"{error}\n") messagebox.showerror(self.translate("Error"), self.translate("An error occured", " :", "\n", error, "\n\n")) def progress(self, show: bool = None, indeter: bool = None, step: int = None,