fix(windows): fix macros (#8653)

* fix macro tests

* path format options

* remove failing comment

* fix buffer toString memcpy length
This commit is contained in:
Dylan Conway
2024-02-03 00:35:25 -08:00
committed by GitHub
parent d16ac87347
commit e0c0fe235a
7 changed files with 104 additions and 26 deletions

View File

@@ -493,7 +493,7 @@ pub const CreateCommand = struct {
progress_.refresh();
Output.prettyError("<r><red>{s}<r>: copying file {}", .{ @errorName(err), bun.fmt.fmtOSPath(entry.path) });
Output.prettyError("<r><red>{s}<r>: copying file {}", .{ @errorName(err), bun.fmt.fmtOSPath(entry.path, .{}) });
Global.exit(1);
};
};
@@ -513,7 +513,7 @@ pub const CreateCommand = struct {
}
CopyFile.copyFile(infile.handle, outfile.handle) catch |err| {
Output.prettyError("<r><red>{s}<r>: copying file {}", .{ @errorName(err), bun.fmt.fmtOSPath(entry.path) });
Output.prettyError("<r><red>{s}<r>: copying file {}", .{ @errorName(err), bun.fmt.fmtOSPath(entry.path, .{}) });
Global.exit(1);
};
}