diff options
| author | xiphon <xiphon@protonmail.com> | 2019-09-09 00:03:55 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2019-09-09 00:03:55 +0000 |
| commit | c89f7effd1f1a032c9361076c96f5836aa37ed8b (patch) | |
| tree | 5455a4e74bc7baa206c89ed57917876dd8c129c8 /src/wallet/api/wallet.cpp | |
| parent | 1b93cb74bb351aea40140e60586bdb198695914d (diff) | |
| download | monzero-core-c89f7effd1f1a032c9361076c96f5836aa37ed8b.tar.gz monzero-core-c89f7effd1f1a032c9361076c96f5836aa37ed8b.tar.xz monzero-core-c89f7effd1f1a032c9361076c96f5836aa37ed8b.zip | |
wallet2_api: fix load unsigned tx from file error propagation
Diffstat (limited to 'src/wallet/api/wallet.cpp')
| -rw-r--r-- | src/wallet/api/wallet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index e632b8d23..2c95c4b49 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 |
