forked from lthn/blockchain
wallets manager: minor improvements in exceptions' handling
This commit is contained in:
parent
3609e683d9
commit
9722b3baf9
1 changed files with 2 additions and 2 deletions
|
|
@ -755,7 +755,7 @@ std::string wallets_manager::generate_wallet(const std::wstring& path, const std
|
|||
{
|
||||
w->generate(path, password);
|
||||
}
|
||||
catch (const tools::error::file_exists/*& e*/)
|
||||
catch (const tools::error::file_exists&)
|
||||
{
|
||||
return API_RETURN_CODE_ALREADY_EXISTS;
|
||||
}
|
||||
|
|
@ -830,7 +830,7 @@ std::string wallets_manager::restore_wallet(const std::wstring& path, const std:
|
|||
{
|
||||
w->restore(path, password, restore_key);
|
||||
}
|
||||
catch (const tools::error::file_exists/*& e*/)
|
||||
catch (const tools::error::file_exists&)
|
||||
{
|
||||
return API_RETURN_CODE_ALREADY_EXISTS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue