diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-08-17 10:31:00 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-08-17 10:31:00 -0500 |
| commit | 866a7b3a78d13d65e97ca084d662d649698d4c85 (patch) | |
| tree | 6fede1b60fa2949b906da384d76928380aad3ad0 /pages | |
| parent | f342d46541da9b1a2de301049ee823e7478f9ce2 (diff) | |
| parent | 33310786dbb2e8817bfe4cac36b45069031d14bd (diff) | |
| download | monzero-gui-866a7b3a78d13d65e97ca084d662d649698d4c85.tar.gz monzero-gui-866a7b3a78d13d65e97ca084d662d649698d4c85.tar.xz monzero-gui-866a7b3a78d13d65e97ca084d662d649698d4c85.zip | |
Merge pull request #4147
3331078 p2pool: fix crash without network connection (selsta)
6ac8e7a p2pool: add more detailed failure message (selsta)
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/Mining.qml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pages/Mining.qml b/pages/Mining.qml index 025f8b92..e0f220aa 100644 --- a/pages/Mining.qml +++ b/pages/Mining.qml @@ -641,10 +641,25 @@ allArgs = allArgs.filter( ( el ) => !defaultArgs.includes( el.split(" ")[0] ) ) } } - function p2poolDownloadFailed() { + function p2poolDownloadFailed(errorCode) { statusMessage.visible = false errorPopup.title = qsTr("P2Pool Installation Failed") + translationManager.emptyString; - errorPopup.text = qsTr("P2Pool installation failed.") + isWindows ? (" " + qsTr("Try starting the program with administrator privileges.")) : "" + switch (errorCode) { + case P2PoolManager.HashVerificationFailed: + errorPopup.text = qsTr("Hash verification failed.") + translationManager.emptyString; + break; + case P2PoolManager.BinaryNotAvailable: + errorPopup.text = qsTr("P2Pool download is not available.") + translationManager.emptyString; + break; + case P2PoolManager.ConnectionIssue: + errorPopup.text = qsTr("P2Pool download failed due to a connection issue.") + translationManager.emptyString; + break; + case P2PoolManager.InstallationFailed: + errorPopup.text = qsTr("P2Pool installation failed.") + (isWindows ? (" " + qsTr("Try starting the program with administrator privileges.")) : "") + break; + default: + errorPopup.text = qsTr("Unknown error.") + translationManager.emptyString; + } errorPopup.icon = StandardIcon.Critical errorPopup.open() update() |
