aboutsummaryrefslogtreecommitdiff
path: root/src/bundler
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-16 22:52:49 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-16 22:52:49 -0700
commitea660b338d6898adce2cc95629cb1461b4333ff8 (patch)
tree496ce03cbb9fed7dfb1dec430fc30dedd64d4ba7 /src/bundler
parent8c8dd8b69c15920f3e2c1ef69f2cf0064efb997a (diff)
downloadbun-jarred/cleanup-error.tar.gz
bun-jarred/cleanup-error.tar.zst
bun-jarred/cleanup-error.zip
Use a better error labeljarred/cleanup-error
Diffstat (limited to 'src/bundler')
-rw-r--r--src/bundler/bundle_v2.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig
index 64aaf54d9..359272e5f 100644
--- a/src/bundler/bundle_v2.zig
+++ b/src/bundler/bundle_v2.zig
@@ -512,7 +512,7 @@ pub const BundleV2 = struct {
import_record.range,
this.graph.allocator,
"Browser build cannot {s} Node.js module: \"{s}\". To use Node.js builtins, set target to 'node' or 'bun'",
- .{ import_record.kind.label(), path_to_use },
+ .{ import_record.kind.errorLabel(), path_to_use },
import_record.kind,
) catch unreachable;
} else {
@@ -1915,7 +1915,7 @@ pub const BundleV2 = struct {
import_record.range,
this.graph.allocator,
"Browser build cannot {s} Node.js builtin: \"{s}\". To use Node.js builtins, set target to 'node' or 'bun'",
- .{ import_record.kind.label(), import_record.path.text },
+ .{ import_record.kind.errorLabel(), import_record.path.text },
import_record.kind,
) catch @panic("unexpected log error");
} else {