Merge pull request #4376

2ace509a simplewallet: print reason why refresh+password is needed (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-09-21 20:40:46 +02:00
commit dc9a69d980
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 1 deletions

View File

@ -4203,7 +4203,7 @@ boost::optional<epee::wipeable_string> simple_wallet::on_get_password(const char
// can't ask for password from a background thread // can't ask for password from a background thread
if (!m_in_manual_refresh.load(std::memory_order_relaxed)) if (!m_in_manual_refresh.load(std::memory_order_relaxed))
{ {
message_writer(console_color_red, false) << tr("Password needed - use the refresh command"); message_writer(console_color_red, false) << boost::format(tr("Password needed (%s) - use the refresh command")) % reason;
m_cmd_binder.print_prompt(); m_cmd_binder.print_prompt();
return boost::none; return boost::none;
} }