This commit is contained in:
Ciro Spaciari
2025-09-08 19:43:40 -07:00
parent edec93a475
commit 6f125e0375
2 changed files with 3 additions and 5 deletions

View File

@@ -380,7 +380,7 @@ pub fn failWithJSValue(this: *MySQLConnection, value: JSValue) void {
this.globalObject,
.js_undefined,
&[_]JSValue{
value,
value.toError() orelse value,
this.getQueriesArray(),
},
) catch |e| this.globalObject.reportActiveExceptionAsUnhandled(e);