Skip to content

Commit

Permalink
Use throwEINVAL
Browse files Browse the repository at this point in the history
  • Loading branch information
heimskr committed Feb 3, 2025
1 parent 1f0a8a6 commit 0f58c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bun.js/api/bun/udp_socket.zig
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ pub const UDPSocket = struct {

var addr: std.posix.sockaddr.storage = undefined;
if (!parseAddr(this, globalThis, JSC.jsNumber(0), arguments[0], &addr)) {
return globalThis.throwValue(bun.sys.Error.fromCode(.INVAL, .setsockopt).toJSC(globalThis));
try throwEINVAL(globalThis);
}

var interface: std.posix.sockaddr.storage = undefined;
Expand Down

0 comments on commit 0f58c48

Please sign in to comment.