mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
More fixes
This commit is contained in:
@@ -310,7 +310,7 @@ async function spawnSafe({
|
||||
(error = /oh no: Bun has crashed/i.exec(buffer))
|
||||
) {
|
||||
const [, message] = error || [];
|
||||
error = message ? message.split("\n").find() : "crash";
|
||||
error = message ? message.split("\n")[0] : "crash";
|
||||
} else if (signalCode) {
|
||||
if (signalCode === "SIGTERM" && duration >= timeout) {
|
||||
error = "timeout";
|
||||
|
||||
Reference in New Issue
Block a user