From c41e47859fdd58e493a98af0567b27a344b56523 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 24 Sep 2026 13:35:59 +0900 Subject: [PATCH] change: more explicit error message --- dzgui/init/dayz.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dzgui/init/dayz.py b/dzgui/init/dayz.py index 01bc271..490cae6 100644 --- a/dzgui/init/dayz.py +++ b/dzgui/init/dayz.py @@ -4,17 +4,24 @@ from pathlib import Path from dzgui.api.steam import get_app_path from dzgui.config.query import lookup -from dzgui.const.constants import APPID_DAYZ, APP_NAME +from dzgui.const.constants import APPID_DAYZ, APP_NAME, APPNAME_DAYZ from dzgui.const.enum import Preferences +from dzgui.strings.preconnect import resync + logger = logging.getLogger(APP_NAME) +class VDFSyncError(Exception): + pass + + def is_dayz_installed(config: Path) -> None: try: path = lookup(config, Preferences.DEFAULT) get_app_path(Path(path), APPID_DAYZ) except Exception as e: logger.critical(e) - raise e + msg = resync.format(APPNAME_DAYZ) + raise VDFSyncError(msg)