report request errors in desktop

This commit is contained in:
Evan Almloff committed 2023-08-18 11:02:15 -05:00
1 parent 7b2bf4acc5
commit efe08df966
1 file changed
+6
+6
View File
@@ -127,6 +127,12 @@ pub(super) fn desktop_handler(
.map_err(From::from);
}
log::error!(
"Failed to find {} (as path {})",
request.uri().path(),
asset.display()
);
Response::builder()
.status(StatusCode::NOT_FOUND)
.body(Cow::from(String::from("Not Found").into_bytes()))