aboutsummaryrefslogtreecommitdiff
path: root/src/cli/build_command.zig
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-05-17 13:25:56 -0400
committerGravatar GitHub <noreply@github.com> 2023-05-17 10:25:56 -0700
commitf1b16cd36ade829c6b914086b49c83920bef5fb1 (patch)
tree558206af47c220c2f741e0581f1c46915bb5c105 /src/cli/build_command.zig
parentbf1216021e77323a37872f3e58bad980660ea971 (diff)
downloadbun-f1b16cd36ade829c6b914086b49c83920bef5fb1.tar.gz
bun-f1b16cd36ade829c6b914086b49c83920bef5fb1.tar.zst
bun-f1b16cd36ade829c6b914086b49c83920bef5fb1.zip
do not fail bundles on warnings (#2920)
Diffstat (limited to 'src/cli/build_command.zig')
-rw-r--r--src/cli/build_command.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/build_command.zig b/src/cli/build_command.zig
index 6609facac..957cbc9b7 100644
--- a/src/cli/build_command.zig
+++ b/src/cli/build_command.zig
@@ -232,7 +232,7 @@ pub const BuildCommand = struct {
ctx.args,
);
- if (log.msgs.items.len > 0) {
+ if (log.hasErrors()) {
try log.printForLogLevel(Output.errorWriter());
if (result.errors.len > 0 or result.output_files.len == 0) {