# HG changeset patch # User Alain Mazy # Date 1588843918 -7200 # Node ID 37cf1889667a62d9d60f8fa41c5dcb8d867c1c4c # Parent 09798f2b985f0dfb474016add832671e858ce533 more explicit error message diff -r 09798f2b985f -r 37cf1889667a Core/DicomParsing/FromDcmtkBridge.cpp --- a/Core/DicomParsing/FromDcmtkBridge.cpp Wed Apr 29 12:26:51 2020 +0200 +++ b/Core/DicomParsing/FromDcmtkBridge.cpp Thu May 07 11:31:58 2020 +0200 @@ -1725,7 +1725,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); @@ -1769,7 +1769,7 @@ } default: - throw OrthancException(ErrorCode_BadParameterType); + throw OrthancException(ErrorCode_BadParameterType, "Bad Parameter type for tag " + tag.Format()); } return element.release();