#38: Log wikitext errors
This commit is contained in:
parent
fd2fedeeff
commit
5813c9aa8d
4 changed files with 29 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue