fix: collector error value

This commit is contained in:
MARCROCK22 2024-11-16 13:14:31 -04:00
parent 53e99d5217
commit 3e14166247
2 changed files with 1 additions and 3 deletions

View File

@ -54,7 +54,6 @@ export class ApiHandler {
if (worker_threads?.parentPort) {
this.sendMessage = async body => {
console;
worker_threads.parentPort!.postMessage(
body,
body.requestOptions.files

View File

@ -1,4 +1,3 @@
import { error } from 'node:console';
import { type UUID, randomUUID } from 'node:crypto';
import type { UsingClient } from '../commands';
import type { Awaitable, CamelCase } from '../common';
@ -90,7 +89,7 @@ export class Collectors {
try {
await collector.options.onStop?.(reason);
} catch (e) {
await collector.options.onStopError?.(reason, error);
await collector.options.onStopError?.(reason, e);
}
}