log errors when desktop fails to read the head

This commit is contained in:
Evan Almloff committed 2023-08-18 10:36:55 -05:00
1 parent 9bfe9682b5
commit 1cbf549847
1 file changed
+7 -1
+7 -1
View File
@@ -25,7 +25,13 @@ pub fn build(
}
#[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
}
}
}
};