Merge pull request #1883

d0238313 use const references in catch blocks (moneromooo-monero)
This commit is contained in:
Riccardo Spagni
2017-03-18 20:30:19 +02:00
5 changed files with 13 additions and 13 deletions

View File

@@ -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();