From c003ab063e99853986884357c1284dfbabc4afff Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 25 Oct 2005 12:41:30 +0000 Subject: [PATCH] avoid polluting output --- src/gdcmFile.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index a68c6ae7..da87e9ab 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/10/25 08:44:51 $ - Version: $Revision: 1.292 $ + Date: $Date: 2005/10/25 12:41:30 $ + Version: $Revision: 1.293 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1731,7 +1731,9 @@ uint32_t File::ReadTagLength(uint16_t testGroup, uint16_t testElem) if ( !ReadTag(testGroup, testElem) ) { - gdcmErrorMacro( "ReadTag did not succeed for (" + // Avoid polutting output + if ( testGroup != 0xfffe ) + gdcmErrorMacro( "ReadTag did not succeed for (" << DictEntry::TranslateToKey(testGroup,testElem) << ")..." ); return 0; -- 2.45.2