From: regrain Date: Wed, 19 Oct 2005 09:27:24 +0000 (+0000) Subject: * Error message amelioration X-Git-Tag: OpenJPEG.Version1.2~318 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f5bd1453e95d404bb816e77abcdbf6aef6f526d5;p=gdcm.git * Error message amelioration -- BeNours --- diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 8820c7cf..1eeac151 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/18 21:19:57 $ - Version: $Revision: 1.279 $ + Date: $Date: 2005/10/19 09:27:24 $ + Version: $Revision: 1.280 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -2000,9 +2000,9 @@ bool File::ReadTag(uint16_t testGroup, uint16_t testElem) { gdcmWarningMacro( "Wrong Item Tag found:" << " We should have found tag (" - << std::hex << testGroup << "," << testElem << ")" << std::endl + << DictEntry::TranslateToKey(testGroup,testElem) << ")" << std::endl << " but instead we encountered tag (" - << std::hex << itemTagGroup << "," << itemTagElem << ")" + << DictEntry::TranslateToKey(itemTagGroup,itemTagElem) << ")" << " at address: " << " 0x(" << (unsigned int)currentPosition << ")" ) ; Fp->seekg(positionOnEntry, std::ios::beg); @@ -2031,7 +2031,8 @@ uint32_t File::ReadTagLength(uint16_t testGroup, uint16_t testElem) if ( !ReadTag(testGroup, testElem) ) { - gdcmErrorMacro( "ReadTag did not succeed..." ); + gdcmErrorMacro( "ReadTag did not succeed... for " + << DictEntry::TranslateToKey(testGroup,testElem) ); return 0; }