From 47cd47f819052becaa57680422e586912e93c395 Mon Sep 17 00:00:00 2001 From: David Kelly Date: Fri, 1 Sep 2017 14:50:45 -0700 Subject: [PATCH] log when no passphrase was set before trying to decrypt --- interface/src/commerce/Wallet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/commerce/Wallet.cpp b/interface/src/commerce/Wallet.cpp index 6caa9c9a5b..1f56ae32c4 100644 --- a/interface/src/commerce/Wallet.cpp +++ b/interface/src/commerce/Wallet.cpp @@ -60,9 +60,9 @@ int passwordCallback(char* password, int maxPasswordSize, int rwFlag, void* u) { strcpy(password, passphrase->toLocal8Bit().constData()); return static_cast(passphrase->size()); } else { - // Old comment below...this should never happen once we're here...what if it does? - // ok gotta bring up modal dialog... But right now lets just - // just keep it empty + // this shouldn't happen - so lets log it to tell us we have + // a problem with the flow... + qCCritical(commerce) << "no cached passphrase while decrypting!"; return 0; } }