mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: collector error value
This commit is contained in:
parent
53e99d5217
commit
3e14166247
@ -54,7 +54,6 @@ export class ApiHandler {
|
||||
|
||||
if (worker_threads?.parentPort) {
|
||||
this.sendMessage = async body => {
|
||||
console;
|
||||
worker_threads.parentPort!.postMessage(
|
||||
body,
|
||||
body.requestOptions.files
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user