1
0
Fork 0
forked from lthn/blockchain

wallets manager: minor improvements in exceptions' handling

This commit is contained in:
sowle 2020-02-20 15:40:00 +03:00
parent 3609e683d9
commit 9722b3baf9
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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;
}