comparison OrthancFramework/Sources/DicomNetworking/DicomControlUserConnection.cpp @ 4996:0f0ada196993

more verbose error
author Alain Mazy <am@osimis.io>
date Wed, 04 May 2022 10:50:34 +0200
parents 43e613a7756b
children 6fbff89fd5a4
comparison
equal deleted inserted replaced
4995:01934fc29d43 4996:0f0ada196993
40 const DicomMap& source, 40 const DicomMap& source,
41 const DicomTag& tag) 41 const DicomTag& tag)
42 { 42 {
43 if (!source.HasTag(tag)) 43 if (!source.HasTag(tag))
44 { 44 {
45 throw OrthancException(ErrorCode_BadRequest); 45 throw OrthancException(ErrorCode_BadRequest, "Missing tag " + tag.Format());
46 } 46 }
47 else 47 else
48 { 48 {
49 result.SetValue(tag, source.GetValue(tag)); 49 result.SetValue(tag, source.GetValue(tag));
50 } 50 }