chore: log error on ws unexpected close

This commit is contained in:
Georgios Konstantopoulos 2022-05-23 11:56:31 -07:00
parent 9ed9395c2c
commit f237f85959
1 changed files with 2 additions and 1 deletions

View File

@ -401,7 +401,8 @@ where
// Handle ws messages // Handle ws messages
resp = self.ws.next() => match resp { resp = self.ws.next() => match resp {
Some(Ok(resp)) => self.handle(resp).await?, Some(Ok(resp)) => self.handle(resp).await?,
Some(Err(_)) => { Some(Err(err)) => {
tracing::error!(?err);
return Err(ClientError::UnexpectedClose); return Err(ClientError::UnexpectedClose);
} }
None => { None => {