mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
Panic proc macro srv if read request failed
This commit is contained in:
parent
278bf351e3
commit
0744497699
@ -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…
Reference in New Issue
Block a user