diff options
author | 2023-09-16 22:52:49 -0700 | |
---|---|---|
committer | 2023-09-16 22:52:49 -0700 | |
commit | ea660b338d6898adce2cc95629cb1461b4333ff8 (patch) | |
tree | 496ce03cbb9fed7dfb1dec430fc30dedd64d4ba7 /src/bundler | |
parent | 8c8dd8b69c15920f3e2c1ef69f2cf0064efb997a (diff) | |
download | bun-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.zig | 4 |
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 { |