mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
simplewallet: show error for timed-out hardware wallets
This commit is contained in:
@@ -6276,6 +6276,17 @@ void simple_wallet::check_for_inactivity_lock(bool user)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (const std::exception &e)
|
||||||
|
{
|
||||||
|
// Report why unlocking failed, rather than just looping back to the password prompt
|
||||||
|
auto writer = fail_msg_writer();
|
||||||
|
if (show_wallet_name)
|
||||||
|
writer << tr("Failed to unlock wallet: ") << e.what();
|
||||||
|
else
|
||||||
|
writer << tr("Failed to unlock wallet.");
|
||||||
|
if (m_wallet->key_on_device())
|
||||||
|
writer << "\n" << tr("Please ensure the HW wallet is connected and unlocked.");
|
||||||
|
}
|
||||||
catch (...) { /* do nothing, just let the loop loop */ }
|
catch (...) { /* do nothing, just let the loop loop */ }
|
||||||
}
|
}
|
||||||
m_last_activity_time = time(NULL);
|
m_last_activity_time = time(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user