proper message here

This commit is contained in:
Meghan Denny
2025-06-17 00:02:31 -07:00
parent dfb4aac6d1
commit 0dc55100fa

View File

@@ -2555,8 +2555,8 @@ fn NewSocket(comptime ssl: bool) type {
this.handleError(JSC.SystemError.createJS(this.handlers.globalObject, .{
.errno = @bitCast(errno),
.code = .static(@tagName(@as(bun.sys.SystemErrno, @enumFromInt(errno)))),
.message = .static("idk what goes here"),
.syscall = .static("send"),
.message = bun.String.createFormat("{s} {s}", .{ "write", @tagName(@as(bun.sys.SystemErrno, @enumFromInt(errno))) }) catch bun.outOfMemory(),
.syscall = .static("write"),
}));
return error.CalledOnError;
}