Skip to content

Commit

Permalink
Update server.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Jun 16, 2024
1 parent ea6e3df commit 0b9b89a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/els/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
Ok(msg) => msg,
Err(err) => {
lsp_log!("error: {err}");
if err.kind() == io::ErrorKind::UnexpectedEof {
panic!("unexpected EOF");
}
continue;
}
};
Expand All @@ -355,6 +358,9 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
Ok(msg) => msg,
Err(err) => {
lsp_log!("error: {err}");
if err.kind() == io::ErrorKind::UnexpectedEof {
panic!("unexpected EOF");
}
continue;
}
};
Expand Down

0 comments on commit 0b9b89a

Please sign in to comment.