Browse Source

fixed error message and unit test

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@701 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
772fe0d8fe
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lib/cc/cpp/data.cc
  2. 1 1
      src/lib/cc/cpp/data_unittests.cc

+ 1 - 1
src/lib/cc/cpp/data.cc

@@ -47,7 +47,7 @@ throwParseError(const std::string error, const std::string file, int line = 0, i
 {
     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);

+ 1 - 1
src/lib/cc/cpp/data_unittests.cc

@@ -75,7 +75,7 @@ TEST(Element, from_and_to_str) {
         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();