mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
feat(bake): handle bundle errors, re-assemble full client payloads, initial error modal (#14504)
This commit is contained in:
@@ -4940,15 +4940,8 @@ fn NewPrinter(
|
||||
p.printExpr(s.value, .lowest, ExprFlag.ExprResultIsUnused());
|
||||
p.printSemicolonAfterStatement();
|
||||
},
|
||||
else => {
|
||||
var slice = p.writer.slice();
|
||||
const to_print: []const u8 = if (slice.len > 1024) slice[slice.len - 1024 ..] else slice;
|
||||
|
||||
if (to_print.len > 0) {
|
||||
Output.panic("\n<r><red>voluntary crash<r> while printing:<r>\n{s}\n---This is a <b>bug<r>. Not your fault.\n", .{to_print});
|
||||
} else {
|
||||
Output.panic("\n<r><red>voluntary crash<r> while printing. This is a <b>bug<r>. Not your fault.\n", .{});
|
||||
}
|
||||
else => |tag| {
|
||||
Output.panic("Unexpected tag in printStmt: .{s}", .{@tagName(tag)});
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user