aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2023-04-09 03:00:42 +0200
committerselsta <selsta@sent.at>2023-04-13 15:44:52 +0200
commit6ac8e7a464cc56190854121e3ec4e42363cadc9e (patch)
tree421f72068679ded56d72363b62023854dcda77a9 /pages
parentf650e963630f49b44a2ef16211f565555b9f159e (diff)
downloadmonzero-gui-6ac8e7a464cc56190854121e3ec4e42363cadc9e.tar.gz
monzero-gui-6ac8e7a464cc56190854121e3ec4e42363cadc9e.tar.xz
monzero-gui-6ac8e7a464cc56190854121e3ec4e42363cadc9e.zip
p2pool: add more detailed failure message
Diffstat (limited to 'pages')
-rw-r--r--pages/Mining.qml19
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()