changeset 4996:0f0ada196993

more verbose error
author Alain Mazy <am@osimis.io>
date Wed, 04 May 2022 10:50:34 +0200
parents 01934fc29d43
children 1f93dc290628 e9f9711667e1
files OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp	Tue May 03 17:23:56 2022 +0200
+++ b/OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp	Wed May 04 10:50:34 2022 +0200
@@ -42,7 +42,7 @@
   {
     if (!source.HasTag(tag))
     {
-      throw OrthancException(ErrorCode_BadRequest);
+      throw OrthancException(ErrorCode_BadRequest, "Missing tag " + tag.Format());
     }
     else
     {