qt: Replace stray tfm::format to cerr with qWarning

GUI warnings should go to the log, not to the console (which may not be
connected at all).

Github-Pull: gui#868
Rebased-From: edd46566bd
This commit is contained in:
laanwj
2025-04-24 12:09:33 +02:00
committed by fanquake
parent 5aa4956cd3
commit f4d9546425

View File

@@ -33,6 +33,7 @@
#include <fstream> #include <fstream>
#include <memory> #include <memory>
#include <QDebug>
#include <QFontMetrics> #include <QFontMetrics>
#include <QScrollBar> #include <QScrollBar>
#include <QSettings> #include <QSettings>
@@ -464,7 +465,7 @@ bool SendCoinsDialog::signWithExternalSigner(PartiallySignedTransaction& psbtx,
return false; return false;
} }
if (err) { if (err) {
tfm::format(std::cerr, "Failed to sign PSBT"); qWarning() << "Failed to sign PSBT";
processSendCoinsReturn(WalletModel::TransactionCreationFailed); processSendCoinsReturn(WalletModel::TransactionCreationFailed);
return false; return false;
} }