MCPcopy
hub / github.com/7836246/cursor2api / fail

Method fail

src/logger.ts:1145–1153  ·  view source on GitHub ↗
(error: string)

Source from the content-addressed store, hash-verified

1143 }
1144
1145 fail(error: string): void {
1146 this.endPhase();
1147 this.summary.status = 'error';
1148 this.summary.endTime = Date.now();
1149 this.summary.error = error;
1150 this.log('error', 'System', 'error', error);
1151 logEmitter.emit('summary', this.summary);
1152 persistRequest(this.summary, this.payload);
1153 }
1154}

Callers 7

handleOpenAIStreamFunction · 0.80
handleOpenAIResponsesFunction · 0.80
handleResponsesStreamFunction · 0.80
handleMessagesFunction · 0.80
handleStreamFunction · 0.80
handleNonStreamFunction · 0.80

Calls 3

endPhaseMethod · 0.95
logMethod · 0.95
persistRequestFunction · 0.85

Tested by

no test coverage detected