mirror of
https://github.com/monero-project/monero.git
synced 2026-01-22 20:34:23 +01:00
Merge pull request #1883
d0238313 use const references in catch blocks (moneromooo-monero)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user