Bugfix: GUI: Display error messagebox (rather than stderr) when external signer fails inexplicably

This commit is contained in:
Luke Dashjr 2022-05-15 21:53:25 +00:00
parent bbbf89a9de
commit f4fe307b84

View File

@ -466,8 +466,9 @@ bool SendCoinsDialog::signWithExternalSigner(PartiallySignedTransaction& psbtx,
return false;
}
if (err != TransactionError::OK) {
tfm::format(std::cerr, "Failed to sign PSBT");
processSendCoinsReturn(WalletModel::TransactionCreationFailed);
const QString msg = tr("Failed to sign PSBT");
QMessageBox::critical(nullptr, msg, msg);
return false;
}
// fillPSBT does not always properly finalize