X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=common%2FclitkCommon.cxx;h=7afeb074e4da048bdc4af1a9b6ae0e429c09dcd8;hb=c7f6f682ddc01d2a41740bbdb806f9ef967b57d5;hp=d3f6016a5c0e16c88dd363cc096e30e5d403d933;hpb=cb9d2e28489c3531d37c241fe7d8a468451c8e67;p=clitk.git diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index d3f6016..7afeb07 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -240,7 +240,7 @@ void clitk::openFileForReading(std::ifstream & is, const std::string & filename) { is.open(filename.c_str(), std::ios::in); if ( is.fail() ) { - itkGenericExceptionMacro(<< "Could not open file (for reading): " << filename); + clitkExceptionMacro("Could not open file (for reading): " << filename); } } //-------------------------------------------------------------------- @@ -251,7 +251,7 @@ void clitk::openFileForWriting(std::ofstream & os, const std::string & filename) { os.open(filename.c_str(), std::ios::out); if ( os.fail() ) { - itkGenericExceptionMacro(<< "Could not open file (for writing): " << filename); + clitkExceptionMacro("Could not open file (for writing): " << filename); } } //--------------------------------------------------------------------