aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/pending_transaction.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-18 20:30:19 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-18 20:30:19 +0200
commitf33a696ec7de8dbadcc65cbed4bcb1ef7b720609 (patch)
treee81c162369e84bf36f95db167238fa2d8dc171d3 /src/wallet/api/pending_transaction.cpp
parentMerge pull request #1882 (diff)
parentuse const references in catch blocks (diff)
downloadmonero-f33a696ec7de8dbadcc65cbed4bcb1ef7b720609.tar.xz
Merge pull request #1883
d0238313 use const references in catch blocks (moneromooo-monero)
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 (...) {