diff options
| author | 2022-12-15 17:03:08 -0800 | |
|---|---|---|
| committer | 2022-12-15 17:03:08 -0800 | |
| commit | 000a0c9dcac3b4fae73fde60fab4d78a4e15e849 (patch) | |
| tree | da14f213c41987e33297e03cc5911374d8a09aba /src | |
| 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')
| -rw-r--r-- | src/cli.zig | 8 | ||||
| -rw-r--r-- | src/cli/run_command.zig | 2 |
2 files changed, 7 insertions, 3 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); diff --git a/src/cli/run_command.zig b/src/cli/run_command.zig index 6e0177270..b89c20f57 100644 --- a/src/cli/run_command.zig +++ b/src/cli/run_command.zig @@ -1089,7 +1089,7 @@ pub const RunCommand = struct { } if (comptime log_errors) { - Output.prettyError("<r><red>error:<r> Missing script \"<b>{s}<r>\"\n", .{script_name_to_search}); + Output.prettyError("<r><red>error<r><d>:<r> missing script \"<b>{s}<r>\"\n", .{script_name_to_search}); Global.exit(0); } |
