bug: ignores error if theme folder does not exist

This commit is contained in:
gyoder 2025-07-08 11:44:13 -06:00
parent 23885aba3f
commit 88c262fe64
2 changed files with 2 additions and 2 deletions

View file

@ -146,7 +146,7 @@ pub fn process_syntax_highlighting(document: NodeRef) -> Result<NodeRef> {
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() {