diff options
Diffstat (limited to 'src/main.rs')
-rwxr-xr-x | src/main.rs | 7 |
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(), |