X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.cxx;h=7afeb074e4da048bdc4af1a9b6ae0e429c09dcd8;hb=25e6b21607eea7d39428c109e4bc0ebe00f54ed9;hp=d3f6016a5c0e16c88dd363cc096e30e5d403d933;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;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); } } //--------------------------------------------------------------------