Skip to content

Commit 8982569

Browse files
committed
Trim whitespace off server crash error details
1 parent ad074b4 commit 8982569

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
@@ -428,7 +428,7 @@ if (!amMainInstance) {
428428
lastError = errorOutput
429429
.split('\n')
430430
.filter((line: string) => line.match(/^\s*Error:/i))
431-
.slice(-1)[0] || lastError;
431+
.slice(-1)[0]?.trim() || lastError;
432432
});
433433

434434
const serverStartTime = Date.now();

0 commit comments

Comments
 (0)