mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
fix: better error message for bun install fs permission errors (#7550)
* remove `prettyWarn`, add easy print utils, clarify a package.json loading error * error when node_modules isnt writable * hmm * fix instal --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -3020,7 +3020,7 @@ pub const VirtualMachine = struct {
|
||||
|
||||
pub fn initIPCInstance(this: *VirtualMachine, fd: i32) void {
|
||||
if (Environment.isWindows) {
|
||||
Output.prettyWarnln("IPC is not supported on Windows", .{});
|
||||
Output.warn("IPC is not supported on Windows", .{});
|
||||
return;
|
||||
}
|
||||
this.event_loop.ensureWaker();
|
||||
@@ -3029,7 +3029,7 @@ pub const VirtualMachine = struct {
|
||||
|
||||
const socket = uws.newSocketFromFd(context, @sizeOf(*IPCInstance), fd) orelse {
|
||||
uws.us_socket_context_free(0, context);
|
||||
Output.prettyWarnln("Failed to initialize IPC connection to parent", .{});
|
||||
Output.warn("Failed to initialize IPC connection to parent", .{});
|
||||
return;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user