Skip to content

Commit

Permalink
Fix schema self-validator not printing the regular schema errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Oct 24, 2020
1 parent fc16669 commit c086ec1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/serialization/schema_validator.cpp
Expand Up @@ -589,6 +589,7 @@ bool schema_self_validator::reference::can_find(const wml_tag& root, const confi

void schema_self_validator::print(message_info& el)
{
schema_validator::print(el);
switch(el.type) {
case WRONG_TYPE:
wrong_type_error(el.file, el.line, el.tag, el.key, el.value, create_exceptions_);
Expand Down
4 changes: 2 additions & 2 deletions src/serialization/schema_validator.hpp
Expand Up @@ -113,13 +113,13 @@ class schema_validator : public abstract_validator

/** Controls the way to print errors. */
bool create_exceptions_;

virtual void print(message_info&);
private:

typedef std::deque<message_info> message_list;
typedef std::map<const config*, message_list> message_map;

virtual void print(message_info&);

/** Reads config from input. */
bool read_config_file(const std::string& filename);

Expand Down

0 comments on commit c086ec1

Please sign in to comment.