Skip to content

Commit

Permalink
Fix the duplicate tag error message in the schema self-validator
Browse files Browse the repository at this point in the history
The value substituted into this message was changed in a184b39 but the format of the message wasn't adjusted to account for it.
  • Loading branch information
CelticMinstrel committed Oct 25, 2020
1 parent 60564a9 commit 9573f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serialization/schema_validator.cpp
Expand Up @@ -131,12 +131,12 @@ static void wrong_path_error(const std::string& file,
static void duplicate_tag_error(const std::string& file,
int line,
const std::string& tag,
const std::string& key,
const std::string& pat,
const std::string& value,
bool flag_exception)
{
std::ostringstream ss;
ss << "Duplicate or fully-overlapping tag definition '" << value << "' in key '" << key << "=' in tag [" << tag << "]\n" << at(file, line) << "\n";
ss << "Duplicate or fully-overlapping tag definition '" << value << "' (which is also matched by '" << pat << "') in tag [" << tag << "]\n" << at(file, line) << "\n";
print_output(ss.str(), flag_exception);
}

Expand Down

0 comments on commit 9573f66

Please sign in to comment.