# HG changeset patch # User Alain Mazy # Date 1780333090 -7200 # Node ID b9f2946c15df199ec8d5dc95f1bef94bcc15baa0 # Parent 724549b890eb1f3cf55f49a2961e645d907ca51d more detailed errors diff -r 724549b890eb -r b9f2946c15df Framework/PostgreSQL/PostgreSQLResult.cpp --- a/Framework/PostgreSQL/PostgreSQLResult.cpp Mon May 18 15:27:14 2026 +0200 +++ b/Framework/PostgreSQL/PostgreSQLResult.cpp Mon Jun 01 18:58:10 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 724549b890eb -r b9f2946c15df Framework/PostgreSQL/PostgreSQLStatement.cpp --- a/Framework/PostgreSQL/PostgreSQLStatement.cpp Mon May 18 15:27:14 2026 +0200 +++ b/Framework/PostgreSQL/PostgreSQLStatement.cpp Mon Jun 01 18:58:10 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)); } } }