diff --git a/src/zimcheck/checks.cpp b/src/zimcheck/checks.cpp index 45885786..38e51931 100644 --- a/src/zimcheck/checks.cpp +++ b/src/zimcheck/checks.cpp @@ -55,8 +55,8 @@ std::unordered_map> 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"}}, }; @@ -71,9 +71,9 @@ std::unordered_map 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" } },