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

Method throwRequestError

frontend/src/services/apiService.ts:128–136  ·  view source on GitHub ↗
(reqId?: string, error?: any)

Source from the content-addressed store, hash-verified

126 }
127
128 private throwRequestError(reqId?: string, error?: any) {
129 if (!(error instanceof Error)) error = new Error(error);
130
131 if (reqId) {
132 this.event.emit(reqId, error);
133 } else {
134 throw error;
135 }
136 }
137
138 private wait(time: number) {
139 return new Promise((resolve) => {

Callers 1

sendRequestMethod · 0.95

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected