--- trunk/src/mdParser/SimplePreprocessor.hpp 2006/03/23 14:59:14 912 +++ trunk/src/mdParser/SimplePreprocessor.hpp 2006/03/29 22:24:59 924 @@ -48,7 +48,9 @@ #include "utils/StringTokenizer.hpp" #include "utils/Trim.hpp" #include "utils/OOPSEException.hpp" +#include "utils/simError.h" + /** * @class SimplePreprocessor * @brief A simple preprocessor. @@ -72,6 +74,14 @@ class SimplePreprocessor { if (!input.is_open()) { std::stringstream ss; ss << "Can not open " << filename << " for preprocessing\n"; + + sprintf(painCave.errMsg, + "Can not open (%s) for processing. \n" + "\tPlease check md file name syntax.\n", filename.c_str()); + + painCave.isFatal = 1; + simError(); + throw OOPSEException(ss.str()); } int lineNo =1;