Skip to content

Commit

Permalink
Bugfix: GUI: Display error messagebox (rather than stderr) when exter…
Browse files Browse the repository at this point in the history
…nal signer fails inexplicably
  • Loading branch information
luke-jr committed Jun 29, 2023
1 parent 1476090 commit e119c5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e119c5a

Please sign in to comment.