#38: Log wikitext errors

This commit is contained in:
mtkennerly 2024-01-30 04:00:07 -05:00
parent fd2fedeeff
commit 5813c9aa8d
No known key found for this signature in database
GPG key ID: E764BE00BE6E6408
4 changed files with 29 additions and 2 deletions

View file

@ -366,7 +366,7 @@ impl WikiCacheEntry {
.as_str()
.ok_or(Error::WikiData("parse.wikitext"))?;
let wikitext = wikitext_parser::parse_wikitext(raw_wikitext, article, |_| ());
let wikitext = wikitext_parser::parse_wikitext(raw_wikitext, article, |e| println!(" Error: {}", e));
for template in wikitext.list_double_brace_expressions() {
if let TextPiece::DoubleBraceExpression { tag, attributes } = &template {