mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
handle not found error
This commit is contained in:
parent
b1360eab2e
commit
9980d20c21
3 changed files with 9 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue