MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / error

Function error

daemon/src/service/async_task_service/index.ts:59–66  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

57 }
58
59 public async error(err: Error) {
60 this._status = AsyncTask.STATUS_ERROR;
61 this.errorInfo = err;
62 logger.error(`AsyncTask - ID: ${this.taskId} TYPE: ${this.type} Error:`, err);
63 await this.onError(err);
64 this.emit("error", err);
65 this.stop();
66 }
67
68 public wait() {
69 return new Promise<void>((resolve, reject) => {

Callers

nothing calls this directly

Calls 4

errorMethod · 0.80
emitMethod · 0.80
stopMethod · 0.65
onErrorMethod · 0.45

Tested by

no test coverage detected