mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 17:57:06 +02:00
change: clearer startup error
This commit is contained in:
parent
7d8b3b402f
commit
db14c5252c
@ -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)
|
||||
|
||||
@ -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?"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user