mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-08 11:19:07 +00:00
src/server/rest.rs: improve error handling
This commit is contained in:
parent
27c2183ef4
commit
4dd886d9a7
@ -258,6 +258,9 @@ pub fn handle_sync_api_request<Env: RpcEnvironment>(
|
||||
} else {
|
||||
Either::B(future::ok(resp))
|
||||
}
|
||||
})
|
||||
.or_else(move |err| {
|
||||
Ok((formatter.format_error)(err))
|
||||
});
|
||||
|
||||
Box::new(resp)
|
||||
|
Loading…
Reference in New Issue
Block a user