[svn] commit: r701 - in /branches/parkinglot/src/lib/cc/cpp: data.cc data_unittests.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Feb 2 15:39:46 UTC 2010


Author: jelte
Date: Tue Feb  2 15:39:45 2010
New Revision: 701

Log:
fixed error message and unit test

Modified:
    branches/parkinglot/src/lib/cc/cpp/data.cc
    branches/parkinglot/src/lib/cc/cpp/data_unittests.cc

Modified: branches/parkinglot/src/lib/cc/cpp/data.cc
==============================================================================
--- branches/parkinglot/src/lib/cc/cpp/data.cc (original)
+++ branches/parkinglot/src/lib/cc/cpp/data.cc Tue Feb  2 15:39:45 2010
@@ -47,7 +47,7 @@
 {
     if (line != 0 || pos != 0) {
         std::stringstream ss;
-        ss << error << "in " + file + ":" << line << ":" << pos;
+        ss << error << " in " + file + ":" << line << ":" << pos;
         throw ParseError(ss.str());
     } else {
         throw ParseError(error);

Modified: branches/parkinglot/src/lib/cc/cpp/data_unittests.cc
==============================================================================
--- branches/parkinglot/src/lib/cc/cpp/data_unittests.cc (original)
+++ branches/parkinglot/src/lib/cc/cpp/data_unittests.cc Tue Feb  2 15:39:45 2010
@@ -75,7 +75,7 @@
         Element::createFromString("{1}");
     } catch (isc::data::ParseError pe) {
         std::string s = std::string(pe.what());
-        EXPECT_EQ(s, "String expected line 1 pos 3");
+        EXPECT_EQ(s, "String expected in <unknown>:1:3");
     }
     
     sv.clear();




More information about the bind10-changes mailing list