From 88c262fe64cfd0e4385fc4e06f1c4f33054afa63 Mon Sep 17 00:00:00 2001 From: gyoder <70408179+gyoder@users.noreply.github.com> Date: Tue, 8 Jul 2025 11:44:13 -0600 Subject: bug: ignores error if theme folder does not exist --- htmlua-parser/src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'htmlua-parser') diff --git a/htmlua-parser/src/render.rs b/htmlua-parser/src/render.rs index 35c37f4..2e4ed87 100644 --- a/htmlua-parser/src/render.rs +++ b/htmlua-parser/src/render.rs @@ -146,7 +146,7 @@ pub fn process_syntax_highlighting(document: NodeRef) -> Result { if !syntax_elements.is_empty() { // TODO: read from config let themes = PathBuf::from("/var/www/htmlua/themes"); - ts.add_from_folder(themes)?; + let _ = ts.add_from_folder(themes); } for node in syntax_elements { let attrs = match node.as_node().as_element() { -- cgit v1.3.1