mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
change: clearer startup error
This commit is contained in:
1 parent
7d8b3b402f
commit
db14c5252c
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -6,6 +6,7 @@ from pathlib import Path
|
|||||||
from dzgui.config.query import lookup
|
from dzgui.config.query import lookup
|
||||||
from dzgui.const.constants import APPID_DAYZ, APP_NAME, LIBRARYFOLDERS_PATH
|
from dzgui.const.constants import APPID_DAYZ, APP_NAME, LIBRARYFOLDERS_PATH
|
||||||
from dzgui.const.enum import Preferences
|
from dzgui.const.enum import Preferences
|
||||||
|
from dzgui.strings.errors import dayz_not_installed
|
||||||
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
|
from dzgui.views.dialogs.early_alert import EarlyAlertDialog
|
||||||
|
|
||||||
import dzgui.api.pefile as PeFile
|
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)
|
PeFile.get_app_path(Path(path) / LIBRARYFOLDERS_PATH, APPID_DAYZ)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.critical(e)
|
logger.critical(e)
|
||||||
EarlyAlertDialog(str(e))
|
EarlyAlertDialog(dayz_not_found)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
@@ -3,3 +3,4 @@ api_validation_error = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
api_popover = "API key validation failed."
|
api_popover = "API key validation failed."
|
||||||
|
dayz_not_found = "Could not find DayZ and/or Steam: are they installed?"
|
||||||
Reference in new issue
Block a user