Skip to content

Commit

Permalink
BoostHttpClient: Throw exception with message
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Sep 23, 2024
1 parent bc3b1f1 commit 59d6cb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/net/BoostHttpOnlySslClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <boost/asio/ssl.hpp>

#include <cstddef>
#include <stdexcept>
#include <vector>

using namespace std;
Expand Down Expand Up @@ -71,7 +72,7 @@ string BoostHttpOnlySslClient::makeRequest(const Url& url, const vector<HttpReqA
sMsg.append(socket.next_layer().remote_endpoint().address().to_string());
_ioService.reset();

throw std::exception();
throw std::runtime_error(sMsg);
}

string response;
Expand Down

0 comments on commit 59d6cb7

Please sign in to comment.