From 544da7f4c8b89617ada412c1a44d7f37108b9593 Mon Sep 17 00:00:00 2001 From: kanasimi Date: Fri, 6 Sep 2024 06:47:35 +0800 Subject: [PATCH] + debug msg --- routine/20160517.interlanguage_link_to_wikilinks.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routine/20160517.interlanguage_link_to_wikilinks.js b/routine/20160517.interlanguage_link_to_wikilinks.js index 77b1bff..e658420 100644 --- a/routine/20160517.interlanguage_link_to_wikilinks.js +++ b/routine/20160517.interlanguage_link_to_wikilinks.js @@ -623,6 +623,10 @@ function for_each_page(page_data, messages) { if (--template_count > 0 || !template_parsed) { // console.trace([ template_count, template_parsed ]); + if (template_count < 0) { + CeL + .error('check_page: template_count < 0! 可能有 template_count++ 之前,沒登記到的 check_page() 呼叫?'); + } return; }