diff --git a/giterated-daemon/src/connection/wrapper.rs b/giterated-daemon/src/connection/wrapper.rs index c55fdc7..3691a7b 100644 --- a/giterated-daemon/src/connection/wrapper.rs +++ b/giterated-daemon/src/connection/wrapper.rs @@ -9,6 +9,7 @@ use futures_util::{SinkExt, StreamExt}; use giterated_models::{ authenticated::{AuthenticationSource, UserTokenMetadata}, + error::OperationError, instance::Instance, }; @@ -168,6 +169,10 @@ pub async fn connection_wrapper( operation_state.user = None; operation_state.instance = None; + if let Err(OperationError::Internal(internal_error)) = &result { + error!("An internal error has occured: {}", internal_error); + } + let mut socket = connection_state.socket.lock().await; let _ = socket .send(Message::Binary(bincode::serialize(&result).unwrap()))