Commit 772fe0d8 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

fixed error message and unit test


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@701 e5f2f494-b856-4b98-b285-d166d9295462
parent 58f86251
......@@ -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);
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment