summaryrefslogtreecommitdiff
path: root/helix-lsp
diff options
context:
space:
mode:
Diffstat (limited to 'helix-lsp')
-rw-r--r--helix-lsp/src/transport.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/helix-lsp/src/transport.rs b/helix-lsp/src/transport.rs
index 9fdd30aa..f2f35d6a 100644
--- a/helix-lsp/src/transport.rs
+++ b/helix-lsp/src/transport.rs
@@ -270,7 +270,14 @@ impl Transport {
}
};
}
- Err(Error::StreamClosed) => {
+ Err(err) => {
+ if !matches!(err, Error::StreamClosed) {
+ error!(
+ "Exiting {} after unexpected error: {err:?}",
+ &transport.name
+ );
+ }
+
// Close any outstanding requests.
for (id, tx) in transport.pending_requests.lock().await.drain() {
match tx.send(Err(Error::StreamClosed)).await {
@@ -300,10 +307,6 @@ impl Transport {
}
break;
}
- Err(err) => {
- error!("{} err: <- {err:?}", transport.name);
- break;
- }
}
}
}