Update better-sqlite3
This commit is contained in:
@@ -19,17 +19,10 @@ const port = parentPort;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
function respond(seq: number, error: Error | undefined, response?: any) {
|
||||
const corruptionLog = db.getCorruptionLog();
|
||||
|
||||
const errorMessage = [
|
||||
...(error ? [error.stack] : []),
|
||||
...(corruptionLog ? [corruptionLog] : []),
|
||||
].join('\n');
|
||||
|
||||
const wrappedResponse: WrappedWorkerResponse = {
|
||||
type: 'response',
|
||||
seq,
|
||||
error: errorMessage,
|
||||
error: error?.stack,
|
||||
response,
|
||||
};
|
||||
port.postMessage(wrappedResponse);
|
||||
|
Reference in New Issue
Block a user