mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 03:48:56 +00:00
toError
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user