Panic proc macro srv if read request failed
This commit is contained in:
@@ -8,8 +8,9 @@ pub fn run() {
|
|||||||
loop {
|
loop {
|
||||||
let req = match read_request() {
|
let req = match read_request() {
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
eprintln!("Read message error on ra_proc_macro_srv: {}", err);
|
// Panic here, as the stdin pipe may be closed.
|
||||||
continue;
|
// Otherwise, client will be restart the service anyway.
|
||||||
|
panic!("Read message error on ra_proc_macro_srv: {}", err);
|
||||||
}
|
}
|
||||||
Ok(None) => continue,
|
Ok(None) => continue,
|
||||||
Ok(Some(req)) => req,
|
Ok(Some(req)) => req,
|
||||||
|
|||||||
Reference in New Issue
Block a user