« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/checks.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index 2c6ea99a..79a8d4c9 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -537,6 +537,9 @@ export function reportContentTextErrors(wikiData, {
             message:
               `Unknown tag key ${colors.red(`"${replacerKey}"`)}`,
           };
+
+          // No spec, no further errors to report.
+          continue;
         }
 
         const replacerValue = node.data.replacerValue[0].data;
@@ -566,6 +569,9 @@ export function reportContentTextErrors(wikiData, {
               index, length,
               message: error.message,
             };
+
+            // It's only possible to have one error per node at the moment.
+            continue;
           }
         }
       }