mirror of
https://github.com/monero-project/monero.git
synced 2025-08-19 16:28:00 -04:00
catch const exceptions
This commit is contained in:
parent
45a1c4c088
commit
a4240d9ffc
4 changed files with 7 additions and 7 deletions
|
@ -5175,7 +5175,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_)
|
|||
try {
|
||||
min_height = boost::lexical_cast<uint64_t>(local_args[0]);
|
||||
}
|
||||
catch (boost::bad_lexical_cast &) {
|
||||
catch (const boost::bad_lexical_cast &) {
|
||||
fail_msg_writer() << tr("bad min_height parameter:") << " " << local_args[0];
|
||||
return true;
|
||||
}
|
||||
|
@ -5187,7 +5187,7 @@ bool simple_wallet::show_transfers(const std::vector<std::string> &args_)
|
|||
try {
|
||||
max_height = boost::lexical_cast<uint64_t>(local_args[0]);
|
||||
}
|
||||
catch (boost::bad_lexical_cast &) {
|
||||
catch (const boost::bad_lexical_cast &) {
|
||||
fail_msg_writer() << tr("bad max_height parameter:") << " " << local_args[0];
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue