mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
Update server.rs
This commit is contained in:
parent
c5b75e330d
commit
e7b5150ab7
1 changed files with 3 additions and 1 deletions
|
@ -244,7 +244,9 @@ impl<Checker: BuildRunnable, Parser: Parsable> Server<Checker, Parser> {
|
|||
pub fn run(&mut self) -> Result<(), Box<dyn std::error::Error>> {
|
||||
loop {
|
||||
let msg = self.read_message()?;
|
||||
self.dispatch(msg)?;
|
||||
if let Err(err) = self.dispatch(msg) {
|
||||
send_error_info(format!("err: {err:?}"))?;
|
||||
}
|
||||
}
|
||||
// Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue