Fix schema self-validator not printing the regular schema errors
This commit is contained in:
parent
fc16669d50
commit
c086ec1677
2 changed files with 3 additions and 2 deletions
|
@ -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_);
|
||||
|
|
|
@ -113,13 +113,13 @@ protected:
|
|||
|
||||
/** 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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue