diff --git a/deploy/config.py b/deploy/config.py index e510e9004..bc5fa0e6f 100644 --- a/deploy/config.py +++ b/deploy/config.py @@ -145,18 +145,19 @@ class DeployConfig(ConfigModel): return False else: logger.info(f"[ failure ], error_code: {error_code}") - self.show_error(command, error_code) + self.show_error(command) raise ExecutionError else: logger.info(f"[ success ]") return True - def show_error(self, command=None, error_code=None): + def show_error(self, command=None): logger.hr("Update failed", 0) self.show_config() logger.info("") - logger.info(f"Last command: {command}\nerror_code: {error_code}") + logger.info(f"Last command: {command}") logger.info( "Please check your deploy settings in config/deploy.yaml " "and re-open Alas.exe" ) + logger.info("Take the screenshot of entire window if you need help") diff --git a/module/webui/app.py b/module/webui/app.py index 547ed3521..cb7bcd517 100644 --- a/module/webui/app.py +++ b/module/webui/app.py @@ -969,7 +969,7 @@ class AlasGUI(Frame): put_error(t("Gui.AddAlas.FileExist"), scope=s) return - r = State.config_updater.read_file(origin) + r = load_config(origin).read_file(origin) State.config_updater.write_file(name, r, get_config_mod(origin)) self.set_aside() self.active_button("aside", self.alas_name)