diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2022-11-10 12:20:51 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2022-11-10 12:20:51 +0000 |
commit | 110244b564cb2207a3e3854eaf4e955782b0e4d7 (patch) | |
tree | 745508d7c6b2e93695ccdf08016b3b0b98ba0ec4 /fbench | |
parent | 2084275f5e9ec184d3639221705c01b133948703 (diff) |
include exception message as well
Diffstat (limited to 'fbench')
-rw-r--r-- | fbench/src/fbench/client.cpp | 6 |
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(); |