- {
- gdcmErrorMacro( "Wrong Item Tag found:"
- << " We should have found tag ("
- << DictEntry::TranslateToKey(testGroup,testElem) << ")" << std::endl
- << " but instead we encountered tag ("
- << DictEntry::TranslateToKey(itemTagGroup,itemTagElem) << ")"
- << " at address: " << " 0x(" << std::hex
- << (unsigned int)currentPosition << std::dec << ")"
- ) ;
+ {
+ // in order not to pollute output we don't warn on 'delimitors'
+ if (itemTagGroup != 0xfffe || testGroup != 0xfffe )
+ gdcmErrorMacro( "Wrong Item Tag found:"
+ << " We should have found tag ("
+ << DictEntry::TranslateToKey(testGroup,testElem) << ")" << std::endl
+ << " but instead we encountered tag ("
+ << DictEntry::TranslateToKey(itemTagGroup,itemTagElem) << ")"
+ << " at address: " << " 0x(" << std::hex
+ << (unsigned int)currentPosition << std::dec << ")"
+ ) ;