Skip to content

Commit 44eec29

Browse files
committed
Preserve server last-error tracking if more stderr arrives
Previously, we overwrote this state every time, effectively dropping the seen error if a subsequent line with no error appeared.
1 parent 565280f commit 44eec29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ if (!amMainInstance) {
427427
lastError = errorOutput
428428
.split('\n')
429429
.filter((line: string) => line.match(/^\s*Error:/i))
430-
.slice(-1)[0];
430+
.slice(-1)[0] || lastError;
431431
});
432432

433433
const serverStartTime = Date.now();

0 commit comments

Comments
 (0)