aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-09-30 18:45:41 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-09-30 18:45:41 -0500
commite23b9847d080c975f111791004c2ad22f4de3ae5 (patch)
treeabbed6994d64bb350dfb5b340dc651580123805e /src
parentMerge pull request #5893 (diff)
parentwallet2_api: fix load unsigned tx from file error propagation (diff)
downloadmonero-e23b9847d080c975f111791004c2ad22f4de3ae5.tar.xz
Merge pull request #5894
c89f7ef wallet2_api: fix load unsigned tx from file error propagation (xiphon)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/api/wallet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index 7120485d5..6200c7a1f 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -1123,6 +1123,10 @@ UnsignedTransaction *WalletImpl::loadUnsignedTx(const std::string &unsigned_file
UnsignedTransactionImpl * transaction = new UnsignedTransactionImpl(*this);
if (!m_wallet->load_unsigned_tx(unsigned_filename, transaction->m_unsigned_tx_set)){
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