diff options
author | Eldred Habert <eldredhabert0@gmail.com> | 2021-12-15 00:46:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 00:46:35 +0100 |
commit | cb67fc1d15048e46212a7158707b0a974b95a6e8 (patch) | |
tree | 90b04c89b0b72358f9ea5136d8213310f1183ad2 /launcher/Application.cpp | |
parent | 7d047f92236f398b38a49bf2fc99b0714343f780 (diff) | |
download | PrismLauncher-cb67fc1d15048e46212a7158707b0a974b95a6e8.tar.gz PrismLauncher-cb67fc1d15048e46212a7158707b0a974b95a6e8.tar.bz2 PrismLauncher-cb67fc1d15048e46212a7158707b0a974b95a6e8.zip |
Indicate the data folder when related errors occur
This should help troubleshooting such errors when they occur
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r-- | launcher/Application.cpp | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 2d0c81bb..ec6d5984 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -322,14 +322,17 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) { showFatalErrorMessage( "The launcher data folder could not be created.", - "The launcher data folder could not be created.\n" - "\n" + QString( + "The launcher data folder could not be created.\n" + "\n" #if defined(Q_OS_MAC) - MACOS_HINT + MACOS_HINT #endif - "Make sure you have the right permissions to the launcher data folder and any folder needed to access it.\n" - "\n" - "The launcher cannot continue until you fix this problem." + "Make sure you have the right permissions to the launcher data folder and any folder needed to access it.\n" + "(%1)\n" + "\n" + "The launcher cannot continue until you fix this problem." + ).arg(dataPath); ); return; } @@ -337,14 +340,17 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) { showFatalErrorMessage( "The launcher data folder could not be opened.", - "The launcher data folder could not be opened.\n" - "\n" + QString( + "The launcher data folder could not be opened.\n" + "\n" #if defined(Q_OS_MAC) - MACOS_HINT + MACOS_HINT #endif - "Make sure you have the right permissions to the launcher data folder.\n" - "\n" - "The launcher cannot continue until you fix this problem." + "Make sure you have the right permissions to the launcher data folder.\n" + "(%1)\n" + "\n" + "The launcher cannot continue until you fix this problem." + ).arg(dataPath); ); return; } @@ -494,14 +500,17 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) { showFatalErrorMessage( "The launcher data folder is not writable!", - "The launcher couldn't create a log file - the data folder is not writable.\n" - "\n" + QString( + "The launcher couldn't create a log file - the data folder is not writable.\n" + "\n" #if defined(Q_OS_MAC) - MACOS_HINT + MACOS_HINT #endif - "Make sure you have write permissions to the data folder.\n" - "\n" - "The launcher cannot continue until you fix this problem." + "Make sure you have write permissions to the data folder.\n" + "(%1)\n" + "\n" + "The launcher cannot continue until you fix this problem." + ).arg(dataPath); ); return; } |