# HG changeset patch # User Alain Mazy # Date 1588843935 -7200 # Node ID 210af28c4087449b2f902faa1833027cd43ed28d # Parent 37cf1889667a62d9d60f8fa41c5dcb8d867c1c4c# Parent 8f7ad4989fec9169d412cd85bbf92a819bf2c75f merge diff -r 8f7ad4989fec -r 210af28c4087 Core/DicomParsing/FromDcmtkBridge.cpp --- a/Core/DicomParsing/FromDcmtkBridge.cpp Thu May 07 11:13:29 2020 +0200 +++ b/Core/DicomParsing/FromDcmtkBridge.cpp Thu May 07 11:32:15 2020 +0200 @@ -1720,7 +1720,7 @@ DcmTag key(tag.GetGroup(), tag.GetElement()); if (key.getEVR() != EVR_SQ) { - throw OrthancException(ErrorCode_BadParameterType); + throw OrthancException(ErrorCode_BadParameterType, "Bad Parameter type for tag " + tag.Format()); } DcmSequenceOfItems* sequence = new DcmSequenceOfItems(key); @@ -1764,7 +1764,7 @@ } default: - throw OrthancException(ErrorCode_BadParameterType); + throw OrthancException(ErrorCode_BadParameterType, "Bad Parameter type for tag " + tag.Format()); } return element.release();