Improve error message when the proc-macro server unexpectedly exits

This commit is contained in:
Lukas Wirth 2024-07-01 14:30:21 +02:00
parent e6fd485683
commit c6709ffe05
4 changed files with 81 additions and 39 deletions

View file

@ -130,6 +130,10 @@ impl ProcMacroServer {
Err(message) => Err(ServerError { message, io: None }),
}
}
pub fn exited(&self) -> Option<&ServerError> {
self.process.exited()
}
}
impl ProcMacro {