Skip to content

Commit 24ef4a6

Browse files
committed
Better match server error output for shutdown alerts
1 parent 8505a14 commit 24ef4a6

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
@@ -367,7 +367,7 @@ if (!amMainInstance) {
367367
// Remember the last '*Error:' line we saw.
368368
lastError = errorOutput
369369
.split('\n')
370-
.filter((line: string) => line.match(/^\w*Error:/))
370+
.filter((line: string) => line.match(/^\s*Error:/i))
371371
.slice(-1)[0];
372372
});
373373

0 commit comments

Comments
 (0)