Skip to content

Commit

Permalink
Another error message forwarded
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Nov 18, 2023
1 parent ad2ef46 commit 00964eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backends/postgresql/standard-into-type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ void postgresql_standard_into_type_backend::post_fetch(
INV_READ | INV_WRITE);
if (fd == -1)
{
throw soci_error("Cannot open the blob object.");
const char *errorMsg = PQerrorMessage(statement_.session_.conn_);
throw soci_error(std::string("Cannot open the blob object: ") + errorMsg);
}

blob * b = static_cast<blob *>(data_);
Expand Down

0 comments on commit 00964eb

Please sign in to comment.