mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
zig: make throwInvalidArguments use JSError (#15305)
This commit is contained in:
@@ -1398,8 +1398,7 @@ pub const PostgresSQLConnection = struct {
|
||||
else if (tls_object.isObject())
|
||||
(JSC.API.ServerConfig.SSLConfig.fromJS(vm, globalObject, tls_object) catch return .zero) orelse .{}
|
||||
else {
|
||||
globalObject.throwInvalidArguments("tls must be a boolean or an object", .{});
|
||||
return .zero;
|
||||
return globalObject.throwInvalidArguments("tls must be a boolean or an object", .{});
|
||||
};
|
||||
|
||||
if (globalObject.hasException()) {
|
||||
|
||||
Reference in New Issue
Block a user