mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
Add error message when receiving a faulty request
This commit is contained in:
parent
8dd55195f5
commit
2416eede6f
@ -40,6 +40,7 @@ where
|
||||
.limit(4096)
|
||||
.error_handler(|err, _req| {
|
||||
// create custom error response
|
||||
log::error!("API error: {}", err);
|
||||
actix_web::error::InternalError::from_response(
|
||||
err,
|
||||
HttpResponse::Conflict().finish().into(),
|
||||
|
Loading…
Reference in New Issue
Block a user