diff options
| author | 2022-12-15 17:03:08 -0800 | |
|---|---|---|
| committer | 2022-12-15 17:03:08 -0800 | |
| commit | 000a0c9dcac3b4fae73fde60fab4d78a4e15e849 (patch) | |
| tree | da14f213c41987e33297e03cc5911374d8a09aba /src/cli.zig | |
| parent | c1d7ec9564aaa091f46e011f61c1591f9b471a63 (diff) | |
| download | bun-000a0c9dcac3b4fae73fde60fab4d78a4e15e849.tar.gz bun-000a0c9dcac3b4fae73fde60fab4d78a4e15e849.tar.zst bun-000a0c9dcac3b4fae73fde60fab4d78a4e15e849.zip | |
Fix missing error when command not found
Diffstat (limited to 'src/cli.zig')
| -rw-r--r-- | src/cli.zig | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cli.zig b/src/cli.zig index fac996b5a..d0cb0dec7 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -1236,16 +1236,20 @@ pub const Command = struct { return; } + Output.prettyErrorln("<r><red>error<r><d>:<r> script not found \"<b>{s}<r>\"", .{ + ctx.positionals[0], + }); + Global.exit(1); } if (was_js_like) { - Output.prettyErrorln("<r><red>error<r>: Module not found \"<b>{s}<r>\"", .{ + Output.prettyErrorln("<r><red>error<r><d>:<r> module not found \"<b>{s}<r>\"", .{ ctx.positionals[0], }); Global.exit(1); } else if (ctx.positionals.len > 0) { - Output.prettyErrorln("<r><red>error<r>: File not found \"<b>{s}<r>\"", .{ + Output.prettyErrorln("<r><red>error<r><d>:<r> file not found \"<b>{s}<r>\"", .{ ctx.positionals[0], }); Global.exit(1); |
