log errors when desktop fails to read the head
This commit is contained in:
1 parent
9bfe9682b5
commit
1cbf549847
1 file changed
+7
-1
@@ -25,7 +25,13 @@ pub fn build(
|
|||||||
}
|
}
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
{
|
{
|
||||||
std::fs::read_to_string("dist/__assets_head.html").ok()
|
match std::fs::read_to_string("./dist/__assets_head.html") {
|
||||||
|
Ok(s) => Some(s),
|
||||||
|
Err(err) => {
|
||||||
|
log::error!("Failed to read ./dist/__assets_head.html: {}", err);
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user