summaryrefslogtreecommitdiffstats
path: root/fbench
diff options
context:
space:
mode:
Diffstat (limited to 'fbench')
-rw-r--r--fbench/src/fbench/client.cpp6
1 files changed, 4 insertions, 2 deletions
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();