From 17fcb84a897ddc5b8e62241d2a3da2576200e618 Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 26 Mar 2023 08:10:43 -0700 Subject: [PATCH] Report server in error when saving wallet as part of rescan --- src/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 638d7d8..f7f8136 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -244,13 +244,13 @@ MainWindow::MainWindow(QWidget *parent) : QJsonObject parsed = jd_reply.object(); if (parsed.isEmpty() || parsed["result"].isNull()) { - QMessageBox::warning(this, tr("Failed to save wallet"), - tr("Couldn't save the wallet") + "\n" + reply, + QMessageBox::warning(this, tr("Failed to save wallet"), + tr("Couldn't save the wallet") + "\n" + "server=" + config->server + "\n" + reply, QMessageBox::Ok); } else { qDebug() << __func__ << ": saved wallet correctly"; - } + } dialog.close(); // To rescan, we clear the wallet state, and then reload the connection