aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/pending_transaction.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-18 12:56:07 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-18 12:56:07 +0000
commitd0238313278206e505473cef4d4bed88b75b96fd (patch)
treeba5b56f122beeb15794528445a56fd6ff7f65853 /src/wallet/api/pending_transaction.cpp
parentMerge pull request #1869 (diff)
downloadmonero-d0238313278206e505473cef4d4bed88b75b96fd.tar.xz
use const references in catch blocks
Diffstat (limited to 'src/wallet/api/pending_transaction.cpp')
-rw-r--r--src/wallet/api/pending_transaction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp
index 60edc95ce..9798d66c6 100644
--- a/src/wallet/api/pending_transaction.cpp
+++ b/src/wallet/api/pending_transaction.cpp
@@ -124,7 +124,7 @@ bool PendingTransactionImpl::commit(const std::string &filename, bool overwrite)
m_errorString = writer.str();
if (!reason.empty())
m_errorString += string(tr(". Reason: ")) + reason;
- } catch (std::exception &e) {
+ } catch (const std::exception &e) {
m_errorString = string(tr("Unknown exception: ")) + e.what();
m_status = Status_Error;
} catch (...) {