bug: ignores error if theme folder does not exist
This commit is contained in:
parent
23885aba3f
commit
88c262fe64
2 changed files with 2 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue