From: malaterre Date: Wed, 26 Oct 2005 14:50:30 +0000 (+0000) Subject: BUG: ooops msg was removed from the macro if errno is not set X-Git-Tag: OpenJPEG.Version1.2~145 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c1c992135a9c2ddf57bcda50e1b7859513b8d998;p=gdcm.git BUG: ooops msg was removed from the macro if errno is not set --- 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 \