8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b12bae + 2b6259d commit b7e23bdCopy full SHA for b7e23bd
src/lib/db.ts
@@ -198,9 +198,13 @@ ${' '.repeat(5 + lineNumber.toString().length + 2 + lineOffset)}^
198
}
199
return { data: null, error: { code: error.code, message: error.message } }
200
} finally {
201
- // If the error isn't a "DatabaseError" assume it's a connection related we kill the connection 7EA0 div>
202
- // To attempt a clean reconnect on next try
203
- await this.end()
+ try {
+ // If the error isn't a "DatabaseError" assume it's a connection related we kill the connection
+ // To attempt a clean reconnect on next try
204
+ await this.end.bind(this)
205
+ } catch (error) {
206
+ console.error('Failed to end the connection on error: ', { this: this, end: this.end })
207
+ }
208
209
210
},
0 commit comments