From: Remi Gacogne Date: Thu, 4 Jul 2019 11:43:11 +0000 (+0200) Subject: dnsdist: Be a bit more explicit about what failed in testCrypto() X-Git-Tag: dnsdist-1.4.0-rc1~67^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c29bf3dff9b4659723731ce63c33fb0be7429ada;p=pdns dnsdist: Be a bit more explicit about what failed in testCrypto() --- 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";