]> Creatis software - gdcm.git/commitdiff
* Error message amelioration
authorregrain <regrain>
Wed, 19 Oct 2005 09:27:24 +0000 (09:27 +0000)
committerregrain <regrain>
Wed, 19 Oct 2005 09:27:24 +0000 (09:27 +0000)
   -- BeNours

src/gdcmFile.cxx

index 8820c7cf440201b4920f252b13c49a882dbe02e2..1eeac151d2be4778668a926446689f0b50040bbc 100644 (file)
@@ -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;
    }