about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rwxr-xr-xsrc/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index c036324..b2ac1e9 100755
--- a/src/main.rs
+++ b/src/main.rs
@@ -147,6 +147,13 @@ async fn handler(
 ) -> Response {
 	match falible_handler(state, fs, settings, sid, rfr, path).await {
 		Ok(resp) => resp,
+		Err(RuntimeError::NotFound { source: _, path }) => {
+			tracing::warn!("[{sid}] 404 on {path}");
+
+			Response::builder()
+				.body(Body::from(format!("the path was not found: {path}")))
+				.unwrap()
+		}
 		Err(re) => Response::builder()
 			.body(Body::from(re.to_string()))
 			.unwrap(),