From 110244b564cb2207a3e3854eaf4e955782b0e4d7 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Thu, 10 Nov 2022 12:20:51 +0000 Subject: include exception message as well --- fbench/src/fbench/client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fbench/src') diff --git a/fbench/src/fbench/client.cpp b/fbench/src/fbench/client.cpp index b78f96f40f7..5c064159c65 100644 --- a/fbench/src/fbench/client.cpp +++ b/fbench/src/fbench/client.cpp @@ -229,8 +229,10 @@ Client::run() if (_args->_usePostMode && _args->_base64Decode) { try { base64_decoded = Base64::decode(content, cLen); - } catch (...) { - _status->SetError("POST request contains invalid base64 encoded data"); + } catch (std::exception &e) { + std::string msg = "POST request contains invalid base64 encoded data: "; + msg.append(e.what()); + _status->SetError(msg.c_str()); break; } content = base64_decoded.c_str(); -- cgit v1.2.3