Skip to content

Commit

Permalink
Merge pull request #209 from offa/208-exception_info
Browse files Browse the repository at this point in the history
Add additional error information to HTTP exceptions
  • Loading branch information
offa authored Sep 22, 2023
2 parents 19f3ac5 + 0f6ca40 commit 25223f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTTP.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace influxdb::transports
}
if (!cpr::status::is_success(resp.status_code))
{
throw InfluxDBException{"Request failed: (" + std::to_string(resp.status_code) + ") " + resp.reason};
throw InfluxDBException{"Request failed: (" + std::to_string(resp.status_code) + ") " + resp.reason + " (message: '" + resp.text + "')"};
}
}

Expand Down

0 comments on commit 25223f9

Please sign in to comment.