Add checks for booking and fix database timestamps
This commit is contained in:
parent
bc8a534353
commit
e3ec694876
7 changed files with 73 additions and 7 deletions
|
|
@ -57,6 +57,9 @@ pub enum RestError {
|
|||
}
|
||||
|
||||
fn error_handler(result: Result<Response, RestError>) -> Response {
|
||||
if result.is_err() {
|
||||
println!("REST error mapping: {:?}", result);
|
||||
}
|
||||
match result {
|
||||
Ok(response) => response,
|
||||
Err(err @ RestError::InconsistentId(_, _)) => Response::builder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue