Compare commits

...

1 Commits

Author SHA1 Message Date
Meghan Denny
344b23976c pm: BrokenPipe is not fatal when printing the lockfile 2024-10-21 21:09:22 -07:00

View File

@@ -1276,7 +1276,11 @@ pub const Printer = struct {
}
const writer = Output.writer();
try printWithLockfile(allocator, lockfile, format, @TypeOf(writer), writer);
printWithLockfile(allocator, lockfile, format, @TypeOf(writer), writer) catch |err| switch (err) {
error.OutOfMemory => bun.outOfMemory(),
error.BrokenPipe => {},
else => |e| return e,
};
Output.flush();
}