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
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -363,7 +363,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8"
|
||||
dependencies = [
|
||||
"cssparser",
|
||||
"html5ever",
|
||||
"html5ever 0.26.0",
|
||||
"indexmap 1.9.3",
|
||||
"matches",
|
||||
"selectors",
|
||||
|
|
|
|||
|
|
@ -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