change: clearer startup error

This commit is contained in:
aclist 2026-06-10 15:18:42 +09:00
parent 7d8b3b402f
commit db14c5252c
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ from pathlib import Path
from dzgui.config.query import lookup
from dzgui.const.constants import APPID_DAYZ, APP_NAME, LIBRARYFOLDERS_PATH
from dzgui.const.enum import Preferences
from dzgui.strings.errors import dayz_not_installed
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
import dzgui.api.pefile as PeFile
@ -19,5 +20,5 @@ def is_dayz_installed(config: Path) -> None:
PeFile.get_app_path(Path(path) / LIBRARYFOLDERS_PATH, APPID_DAYZ)
except Exception as e:
logger.critical(e)
EarlyAlertDialog(str(e))
EarlyAlertDialog(dayz_not_found)
sys.exit(1)

View File

@ -3,3 +3,4 @@ api_validation_error = (
)
api_popover = "API key validation failed."
dayz_not_found = "Could not find DayZ and/or Steam: are they installed?"