mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
wallet2_api: fix load unsigned tx from file error propagation
This commit is contained in:
parent
1b93cb74bb
commit
c89f7effd1
1 changed files with 4 additions and 0 deletions
|
@ -1123,6 +1123,10 @@ UnsignedTransaction *WalletImpl::loadUnsignedTx(const std::string &unsigned_file
|
||||||
UnsignedTransactionImpl * transaction = new UnsignedTransactionImpl(*this);
|
UnsignedTransactionImpl * transaction = new UnsignedTransactionImpl(*this);
|
||||||
if (!m_wallet->load_unsigned_tx(unsigned_filename, transaction->m_unsigned_tx_set)){
|
if (!m_wallet->load_unsigned_tx(unsigned_filename, transaction->m_unsigned_tx_set)){
|
||||||
setStatusError(tr("Failed to load unsigned transactions"));
|
setStatusError(tr("Failed to load unsigned transactions"));
|
||||||
|
transaction->m_status = UnsignedTransaction::Status::Status_Error;
|
||||||
|
transaction->m_errorString = errorString();
|
||||||
|
|
||||||
|
return transaction;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check tx data and construct confirmation message
|
// Check tx data and construct confirmation message
|
||||||
|
|
Loading…
Reference in a new issue