dbertoni    2002/08/11 20:53:12

  Modified:    c/Tests/Conf conf.cpp
  Log:
  Added better error reporting.
  
  Revision  Changes    Path
  1.27      +7 -7      xml-xalan/c/Tests/Conf/conf.cpp
  
  Index: conf.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Conf/conf.cpp,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- conf.cpp  26 Jul 2002 15:37:19 -0000      1.26
  +++ conf.cpp  12 Aug 2002 03:53:12 -0000      1.27
  @@ -190,9 +190,9 @@
        {
                // Report the failure and be sure to increment fail count.
                //
  -             cout << "ParseWTransformer - Failed to PARSE source document 
for " << h.data.testOrFile << endl;
  +             cout << "ParseWTransformer - Failed to parse source document 
for " << h.data.testOrFile << endl;
                ++h.data.fail;
  -             logFile.logErrorResult(h.data.testOrFile, 
XalanDOMString("Failed to PARSE source document."));
  +             logFile.logErrorResult(h.data.testOrFile, 
XalanDOMString("Failed to parse source document.  ") + xalan.getLastError());
        }
        else 
        {
  @@ -243,9 +243,9 @@
        {
                // Report the failure and be sure to increment fail count.
                //
  -             cout << "parseWXerces - Failed to PARSE source document for " 
<< h.data.testOrFile << endl;
  +             cout << "parseWXerces - Failed to parse source document for " 
<< h.data.testOrFile << endl;
                ++h.data.fail;
  -             logFile.logErrorResult(h.data.testOrFile, 
XalanDOMString("Failed to PARSE source document."));
  +             logFile.logErrorResult(h.data.testOrFile, 
XalanDOMString("Failed to parse source document.  ") + xalan.getLastError());
        }
   }
   
  @@ -343,7 +343,7 @@
   
                                                h.data.xmlFileURL = theXMLFile;
                                                h.data.xslFileURL = theXSLFile;
  -                                             
  +
   
                                                XalanDOMString  theGoldFile = 
h.args.gold + currentDir + FileUtility::s_pathSep + currentFile;
                                                theGoldFile = 
h.generateFileName(theGoldFile, "out");
  @@ -363,9 +363,9 @@
                                                {
                                                        // Report the failure 
and be sure to increment fail count.
                                                        //
  -                                                     cout << "Failed to 
PARSE stylesheet for " << currentFile << endl;
  +                                                     cout << "Failed to 
parse stylesheet for " << currentFile << endl;
                                                        h.data.fail += 1;
  -                                                     
logFile.logErrorResult(currentFile, XalanDOMString("Failed to PARSE 
stylesheet."));
  +                                                     
logFile.logErrorResult(currentFile, XalanDOMString("Failed to parse stylesheet. 
 ")  + xalan.getLastError());
                                                        continue;
                                                }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to