From 14881787d02073e15126ad3251be38ced0cd749a Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Sun, 5 Jul 2009 23:32:29 +0000 Subject: [PATCH] Fixed the name of a routine in an error statement. --- Cantera/src/base/ct2ctml.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Cantera/src/base/ct2ctml.cpp b/Cantera/src/base/ct2ctml.cpp index 0943ddecb..f1f88a341 100644 --- a/Cantera/src/base/ct2ctml.cpp +++ b/Cantera/src/base/ct2ctml.cpp @@ -243,6 +243,7 @@ namespace ctml { void get_CTML_Tree(XML_Node* rootPtr, const std::string file, const int debug) { string ff, ext = ""; + // find the input file on the Cantera search path string inname = findInputFile(file); #ifdef DEBUG_PATHS @@ -251,10 +252,11 @@ namespace ctml { if (debug > 0) writelog("Found file: "+inname+"\n"); - if (inname == "") - throw CanteraError("get_CTML_tree", "file "+file+" not found"); + if (inname == "") { + throw CanteraError("get_CTML_Tree", "file "+file+" not found"); + } - /** + /* * Check whether or not the file is XML. If not, it will be first * processed with the preprocessor. */ @@ -277,7 +279,7 @@ namespace ctml { ifstream fin(ff.c_str()); if (!fin) { throw - CanteraError("get_CTML_tree", + CanteraError("get_CTML_Tree", "XML file " + ff + " not found"); } rootPtr->build(fin);