From c29bf3dff9b4659723731ce63c33fb0be7429ada Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 4 Jul 2019 13:43:11 +0200 Subject: [PATCH] dnsdist: Be a bit more explicit about what failed in testCrypto() --- pdns/dnsdist-lua.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 9165ab1ee..883e5194b 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -897,8 +897,10 @@ void setupLuaConfig(bool client) if(testmsg == decrypted) g_outputBuffer="Everything is ok!\n"; else - g_outputBuffer="Crypto failed..\n"; - + g_outputBuffer="Crypto failed.. (the decoded value does not match the cleartext one)\n"; + } + catch(const std::exception& e) { + g_outputBuffer="Crypto failed: "+std::string(e.what())+"\n"; } catch(...) { g_outputBuffer="Crypto failed..\n"; -- 2.40.0