]> Lady’s Gitweb - GitWikiWeb/commitdiff
Fix djot warnings 0.3.1
authorLady <redacted>
Sat, 2 Sep 2023 19:40:53 +0000 (15:40 -0400)
committerLady <redacted>
Sat, 2 Sep 2023 20:23:39 +0000 (16:23 -0400)
The `reference` variable is used in printing the warnings and so needs
to be set prior to parsing the page.

build.js

index 0eb61fd8de30773f9abed8bea7f99eb6cd9d674e..ae250ca9e6d140c3a9a6ccd760b215ad79c4de3d 100644 (file)
--- a/build.js
+++ b/build.js
@@ -594,6 +594,7 @@ class GitWikiWebPage {
                 `GitWikiWeb: git cat-file returned nonzero exit code: ${catstatus.code}.`,
               );
             } else {
+              const reference = `${namespace}:${pageName}`;
               const page = new GitWikiWebPage(
                 namespace,
                 pageName,
@@ -604,7 +605,6 @@ class GitWikiWebPage {
                 source,
                 config,
               );
-              const reference = `${namespace}:${pageName}`;
               pages.set(reference, page);
               requiredButMissingPages.delete(reference);
             }
This page took 0.039364 seconds and 4 git commands to generate.