Skip to content

Commit

Permalink
Messages order changed
Browse files Browse the repository at this point in the history
  • Loading branch information
BartlomiejZalas committed Aug 12, 2023
1 parent 9067874 commit 133677d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zimcheck/checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ std::unordered_map<TestType, std::pair<LogTag, std::string>> errormapping = {
{ TestType::MAIN_PAGE, {LogTag::ERROR, "Missing mainpage"}},
{ TestType::REDUNDANT, {LogTag::WARNING, "Redundant data found"}},
{ TestType::URL_INTERNAL, {LogTag::ERROR, "Invalid internal links found"}},
{ TestType::URL_EMPTY, {LogTag::WARNING, "Empty links found"}},
{ TestType::URL_EXTERNAL, {LogTag::ERROR, "Invalid external links found"}},
{ TestType::URL_EMPTY, {LogTag::WARNING, "Empty links found"}},
{ TestType::REDIRECT, {LogTag::ERROR, "Redirect loop(s) exist"}},
};

Expand All @@ -71,9 +71,9 @@ std::unordered_map<MsgId, MsgInfo> msgTable = {
{ MsgId::MAIN_PAGE, { TestType::MAIN_PAGE, "Main Page Index stored in Archive Header: {{&main_page_index}}" } },
{ MsgId::EMPTY_ENTRY, { TestType::EMPTY, "Entry {{&path}} is empty" } },
{ MsgId::OUTOFBOUNDS_LINK, { TestType::URL_INTERNAL, "{{&link}} is out of bounds. Article: {{&path}}" } },
{ MsgId::EMPTY_LINKS, { TestType::URL_EMPTY, "Found {{&count}} empty links in article: {{&path}}" } },
{ MsgId::DANGLING_LINKS, { TestType::URL_INTERNAL, "The following links:\n{{#links}}- {{&value}}\n{{/links}}({{&normalized_link}}) were not found in article {{&path}}" } },
{ MsgId::EXTERNAL_LINK, { TestType::URL_EXTERNAL, "{{&link}} is an external dependence in article {{&path}}" } },
{ MsgId::EMPTY_LINKS, { TestType::URL_EMPTY, "Found {{&count}} empty links in article: {{&path}}" } },
{ MsgId::REDUNDANT_ITEMS, { TestType::REDUNDANT, "{{&path1}} and {{&path2}}" } },
{ MsgId::METADATA, { TestType::METADATA, "{{&error}}" } },
{ MsgId::REDIRECT_LOOP, { TestType::REDIRECT, "Redirect loop exists from entry {{&entry_path}}\n" } },
Expand Down

0 comments on commit 133677d

Please sign in to comment.