[cig-commits] r11691 - cs/benchmark/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Tue Apr 1 01:40:11 PDT 2008


Author: luis
Date: 2008-04-01 01:40:11 -0700 (Tue, 01 Apr 2008)
New Revision: 11691

Modified:
   cs/benchmark/cigma/trunk/src/PointsReader.cpp
Log:
Changed error messages in PointsReader.cpp


Modified: cs/benchmark/cigma/trunk/src/PointsReader.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/PointsReader.cpp	2008-04-01 08:40:09 UTC (rev 11690)
+++ cs/benchmark/cigma/trunk/src/PointsReader.cpp	2008-04-01 08:40:11 UTC (rev 11691)
@@ -27,14 +27,13 @@
     assert(opt != 0);
 
     // remember the original option prefix
-    this->pointsOption = "--";
-    this->pointsOption += opt_prefix;
+    pointsOption = opt_prefix;
 
     // 
     // Note that in this case, the name of key to be read
     // is the whole prefix. The caller needs to determine
     // the appropriate name, which will typically correspond
-    // to an option called --{first,second}-{points,values}
+    // to an option called {first,second}-{points,values}
     //
     char *in;
     string optstr = opt_prefix;
@@ -56,7 +55,7 @@
     {
         cerr << cmd_name << ": "
              << "Missing option "
-             << pointsOption
+             << "--" << pointsOption
              << endl;
         exit(1);
     }
@@ -93,14 +92,14 @@
     ierr = pointsReader->open(pointsFile.c_str());
     if (ierr < 0)
     {
-        cerr << "Could not open points file " << pointsFile << endl;
+        cerr << "Error: Could not open " << pointsOption << " file " << pointsFile << endl;
         exit(1);
     }
 
     ierr = pointsReader->get_dataset(pointsLoc.c_str(), &pts, &m, &n);
     if (ierr < 0)
     {
-        cerr << "Error: Could not open points dataset " << pointsLoc << endl;
+        cerr << "Error: Could not open " << pointsOption << " dataset " << pointsLoc << endl;
         exit(1);
     }
 



More information about the cig-commits mailing list