Skip to content

Commit 9bcf51b

Browse files
authored
Try #4101:
2 parents 278bf35 + 25e8f5d commit 9bcf51b

File tree

1 file changed

+3
-2
lines changed
  • crates/ra_proc_macro_srv/src

1 file changed

+3
-2
lines changed

crates/ra_proc_macro_srv/src/cli.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ pub fn run() {
88
loop {
99
let req = match read_request() {
1010
Err(err) => {
11-
eprintln!("Read message error on ra_proc_macro_srv: {}", err);
12-
continue;
11+
// Panic here, as the stdin pipe may be closed.
12+
// Otherwise, client will be restarted the service anyway.
13+
panic!("Read message error on ra_proc_macro_srv: {}", err);
1314
}
1415
Ok(None) => continue,
1516
Ok(Some(req)) => req,

0 commit comments

Comments
 (0)