From c1c992135a9c2ddf57bcda50e1b7859513b8d998 Mon Sep 17 00:00:00 2001 From: malaterre Date: Wed, 26 Oct 2005 14:50:30 +0000 Subject: [PATCH] BUG: ooops msg was removed from the macro if errno is not set --- src/gdcmDebug.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gdcmDebug.h b/src/gdcmDebug.h index 861234e3..60abcb55 100644 --- a/src/gdcmDebug.h +++ b/src/gdcmDebug.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDebug.h,v $ Language: C++ - Date: $Date: 2005/10/26 14:47:06 $ - Version: $Revision: 1.44 $ + Date: $Date: 2005/10/26 14:50:30 $ + Version: $Revision: 1.45 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -114,7 +114,8 @@ public: << ", function " << GDCM_FUNCTION << '\n'; \ if( errno ) \ osmacro << "Last system error was: " << \ - strerror(errno) << '\n' << msg << "\n\n"; \ + strerror(errno) << '\n'; \ + osmacro << msg << "\n\n"; \ if( Debug::GetDebugToFile() ) \ Debug::GetDebugFile() << osmacro.str() << std::endl; \ else \ -- 2.48.1