diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2021-01-19 12:08:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-19 12:08:20 -0500 |
| commit | fda77edbcfcee7675fd1549553114d690d4fcd39 (patch) | |
| tree | 200e5f371bcb5952eadbf38fd365af0eab6c63a3 | |
| parent | 0305ec2c27412557fe831cc8ce23b7d8649809fa (diff) | |
Always print an error if there is a bad "tag" (#72)
* started on basic type errors
* Done. For now
* Push2
| -rw-r--r-- | ZAPD/ZFile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp index 98120a8..d20b978 100644 --- a/ZAPD/ZFile.cpp +++ b/ZAPD/ZFile.cpp @@ -305,8 +305,9 @@ void ZFile::ParseXML(ZFileMode mode, XMLElement* reader, bool placeholderMode) } else { - if (Globals::Instance->verbosity >= VERBOSITY_DEBUG) - printf("Encountered unknown resource type: %s\n", string(child->Name()).c_str()); + std::cerr << "ERROR bad type\n"; + printf("Encountered unknown resource type: %s on line: %d\n", child->Name(), child->GetLineNum()); + std::exit(EXIT_FAILURE); } } } |
