mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-09 20:06:28 +00:00
Panic proc macro srv if read request failed
This commit is contained in:
parent
278bf351e3
commit
0744497699
1 changed files with 3 additions and 2 deletions
|
@ -8,8 +8,9 @@ pub fn run() {
|
|||
loop {
|
||||
let req = match read_request() {
|
||||
Err(err) => {
|
||||
eprintln!("Read message error on ra_proc_macro_srv: {}", err);
|
||||
continue;
|
||||
// Panic here, as the stdin pipe may be closed.
|
||||
// Otherwise, client will be restart the service anyway.
|
||||
panic!("Read message error on ra_proc_macro_srv: {}", err);
|
||||
}
|
||||
Ok(None) => continue,
|
||||
Ok(Some(req)) => req,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue