mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-30 17:28:07 +00:00
Merge pull request #3491
c8cb5fc
exit if specified wallet file doesn't exist (cryptochangements34)
This commit is contained in:
commit
f03bf36c85
1 changed files with 11 additions and 0 deletions
|
@ -3496,6 +3496,17 @@ bool simple_wallet::open_wallet(const boost::program_options::variables_map& vm)
|
|||
fail_msg_writer() << tr("wallet file path not valid: ") << m_wallet_file;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool keys_file_exists;
|
||||
bool wallet_file_exists;
|
||||
|
||||
tools::wallet2::wallet_exists(m_wallet_file, keys_file_exists, wallet_file_exists);
|
||||
if(!keys_file_exists)
|
||||
{
|
||||
fail_msg_writer() << tr("Key file not found. Failed to open wallet");
|
||||
return false;
|
||||
}
|
||||
|
||||
epee::wipeable_string password;
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue