# HG changeset patch # User Alain Mazy # Date 1780333105 -7200 # Node ID 1994604b2aec319013c3ae7242a0a3d723cf6bd8 # Parent b9f2946c15df199ec8d5dc95f1bef94bcc15baa0# Parent 814994b3ba1653d52b21d18bad5cf54b4a23d9c3 merge diff -r 814994b3ba16 -r 1994604b2aec Framework/PostgreSQL/PostgreSQLResult.cpp --- a/Framework/PostgreSQL/PostgreSQLResult.cpp Thu May 28 09:07:40 2026 +0200 +++ b/Framework/PostgreSQL/PostgreSQLResult.cpp Mon Jun 01 18:58:25 2026 +0200 @@ -298,7 +298,7 @@ return new Integer64Value(GetTimestamp(column)); default: - throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented, std::string("Unknown value type: ") + boost::lexical_cast(type)); } } } diff -r 814994b3ba16 -r 1994604b2aec Framework/PostgreSQL/PostgreSQLStatement.cpp --- a/Framework/PostgreSQL/PostgreSQLStatement.cpp Thu May 28 09:07:40 2026 +0200 +++ b/Framework/PostgreSQL/PostgreSQLStatement.cpp Mon Jun 01 18:58:25 2026 +0200 @@ -370,7 +370,7 @@ case ValueType_Null: default: - throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented, std::string("Invalid parameter type ") + boost::lexical_cast(formatter_.GetParameterType(i)) + " for parameter " + boost::lexical_cast(i)); } } }