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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8025%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Be a bit more explicit about what failed in testCrypto() --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 9165ab1eed..883e5194b9 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";