mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
get node:fs tests passing part 1 (#16270)
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user