handle not found error

This commit is contained in:
yggverse 2025-07-03 22:34:09 +03:00
parent b1360eab2e
commit 9980d20c21
3 changed files with 9 additions and 3 deletions

View file

@ -54,7 +54,12 @@ impl Public {
}
c
}
Err(_) => return callback(Response::NotFound { query }),
Err(e) => {
return callback(Response::NotFound {
query,
error: e.to_string(),
});
}
}
};
match fs::metadata(&p) {