Skip to content

Commit

Permalink
validator: Remove redundant "on line N" output fragments
Browse files Browse the repository at this point in the history
They were redundant even before my changes.
  • Loading branch information
irydacea committed Jun 19, 2014
1 parent 1537394 commit e109f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serialization/schema_validator.cpp
Expand Up @@ -86,7 +86,7 @@ static void extra_key_error(const std::string & file, int line,
bool flag_exception){
std::ostringstream ss;
ss << "Invalid key '" << key << "=' in tag [" << tag
<< "] on line " << line << "\n"
<< "]\n"
<< at(file, line) << "\n";
print_output (ss.str (),flag_exception);
}
Expand All @@ -106,7 +106,7 @@ static void wrong_value_error(const std::string & file, int line,
const std::string & value,bool flag_exception){
std::ostringstream ss;
ss << "Invalid value '" << value << "' in key '" << key
<< "=' in tag [" << tag << "] on line " << line << "'\n"
<< "=' in tag [" << tag << "]\n"
<< at(file, line) << "\n";
print_output (ss.str (),flag_exception);
}
Expand Down

0 comments on commit e109f9b

Please sign in to comment.