get node:fs tests passing part 1 (#16270)

This commit is contained in:
chloe caruso
2025-01-14 20:53:02 -08:00
committed by GitHub
parent 4e193b0ebd
commit 834ad11d48
126 changed files with 5137 additions and 2415 deletions

View File

@@ -29,7 +29,7 @@ pub const ExecCommand = struct {
const cwd = switch (bun.sys.getcwd(&buf)) {
.result => |p| p,
.err => |e| {
Output.prettyErrorln("<r><red>error<r>: Failed to run script <b>{s}<r> due to error <b>{s}<r>", .{ script, e.toSystemError() });
Output.err(e, "failed to run script <b>{s}<r>", .{script});
Global.exit(1);
},
};
@@ -40,7 +40,7 @@ pub const ExecCommand = struct {
const script_path = bun.path.join(parts, .auto);
const code = bun.shell.Interpreter.initAndRunFromSource(ctx, mini, script_path, script) catch |err| {
Output.prettyErrorln("<r><red>error<r>: Failed to run script <b>{s}<r> due to error <b>{s}<r>", .{ script_path, @errorName(err) });
Output.err(err, "failed to run script <b>{s}<r>", .{script_path});
Global.exit(1);
};