From 2ace509a7802e286e98e931f57e676f58ff8a2e0 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 14 Sep 2018 08:26:05 +0000 Subject: [PATCH] simplewallet: print reason why refresh+password is needed --- src/simplewallet/simplewallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index bcdf2a43f..26a235dc2 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4166,7 +4166,7 @@ boost::optional simple_wallet::on_get_password(const char // can't ask for password from a background thread 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(); return boost::none; }