Skip to content

Commit

Permalink
Add additional error information to HTTP exceptions (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
offa committed Sep 11, 2023
1 parent 19f3ac5 commit 0f6ca40
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 0f6ca40

Please sign in to comment.