Skip to content

Commit 0744497

Browse files
committed
Panic proc macro srv if read request failed
1 parent 278bf35 commit 0744497

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 restart 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)