aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.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/simplewallet/simplewallet.cpp
parent9aac64c2381864fe23866279d4bd973888a7080b (diff)
parentd0238313278206e505473cef4d4bed88b75b96fd (diff)
downloadmonzero-core-f33a696ec7de8dbadcc65cbed4bcb1ef7b720609.tar.gz
monzero-core-f33a696ec7de8dbadcc65cbed4bcb1ef7b720609.tar.xz
monzero-core-f33a696ec7de8dbadcc65cbed4bcb1ef7b720609.zip
Merge pull request #1883
d0238313 use const references in catch blocks (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 387c44545..ba4ff6299 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -1327,7 +1327,7 @@ std::string simple_wallet::get_mnemonic_language()
fail_msg_writer() << tr("invalid language choice passed. Please try again.\n");
}
}
- catch (std::exception &e)
+ catch (const std::exception &e)
{
fail_msg_writer() << tr("invalid language choice passed. Please try again.\n");
}
@@ -4059,7 +4059,7 @@ bool simple_wallet::export_key_images(const std::vector<std::string> &args)
return true;
}
}
- catch (std::exception &e)
+ catch (const std::exception &e)
{
LOG_ERROR("Error exporting key images: " << e.what());
fail_msg_writer() << "Error exporting key images: " << e.what();