mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
detailled log error with information about ./file/ directory and game information
This commit is contained in:
parent
7078db49df
commit
95dae163d9
1 changed files with 5 additions and 1 deletions
|
@ -204,7 +204,11 @@ class Gui:
|
||||||
"""
|
"""
|
||||||
error = traceback.format_exc()
|
error = traceback.format_exc()
|
||||||
with open("./error.log", "a") as f:
|
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"))
|
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,
|
def progress(self, show: bool = None, indeter: bool = None, step: int = None,
|
||||||
|
|
Loading…
Reference in a new issue