diff options
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); } |
