handle_stderr should return

This commit is contained in:
Dongdong Zhou 2022-07-19 08:28:53 +01:00
parent c2b7df99d9
commit 36c6c7d12f
1 changed files with 3 additions and 1 deletions

View File

@ -848,7 +848,9 @@ fn handle_stderr(&self, stderr: ChildStderr, language_id: String) {
loop { loop {
buffer.clear(); buffer.clear();
let _result = reader.read_line(&mut buffer); if reader.read_line(&mut buffer).is_err() {
return;
}
if buffer.trim().is_empty() { if buffer.trim().is_empty() {
continue; continue;
} }