Merge pull request #1599

17246d05 wallet: print exception message on get_random_outs_error (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-01-20 21:00:01 -05:00
commit 39aaea8e62
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 10 additions and 10 deletions

View file

@ -834,8 +834,8 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const
} catch (const tools::error::wallet_rpc_error& e) {
m_errorString = tr("RPC error: ") + e.to_string();
m_status = Status_Error;
} catch (const tools::error::get_random_outs_error&) {
m_errorString = tr("failed to get random outputs to mix");
} catch (const tools::error::get_random_outs_error &e) {
m_errorString = (boost::format(tr("failed to get random outputs to mix: %s")) % e.what()).str();
m_status = Status_Error;
} catch (const tools::error::not_enough_money& e) {