MCPcopy Index your code
hub / github.com/coder/mux / formatSendMessageError

Method formatSendMessageError

src/node/services/workspaceService.ts:9371–9381  ·  view source on GitHub ↗
(error: SendMessageError)

Source from the content-addressed store, hash-verified

9369 }
9370
9371 private formatSendMessageError(error: SendMessageError): string {
9372 return typeof error === "object" && error !== null
9373 ? "raw" in error && typeof error.raw === "string"
9374 ? error.raw
9375 : "message" in error && typeof error.message === "string"
9376 ? error.message
9377 : "type" in error && typeof error.type === "string"
9378 ? error.type
9379 : JSON.stringify(error)
9380 : String(error);
9381 }
9382
9383 private async buildHeartbeatSendOptions(workspaceId: string): Promise<{
9384 sendOptions: SendMessageOptions;

Calls

no outgoing calls

Tested by

no test coverage detected