diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-18 12:56:07 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-18 12:56:07 +0000 |
commit | d0238313278206e505473cef4d4bed88b75b96fd (patch) | |
tree | ba5b56f122beeb15794528445a56fd6ff7f65853 /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #1869 (diff) | |
download | monero-d0238313278206e505473cef4d4bed88b75b96fd.tar.xz |
use const references in catch blocks
Diffstat (limited to '')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index f5763648f..242b565a1 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"); } @@ -4053,7 +4053,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(); |