MCPcopy
hub / github.com/coder/mux / buildTooLargeMessage

Function buildTooLargeMessage

src/node/utils/attachments/readAttachmentFromPath.ts:123–125  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

121}
122
123function buildTooLargeMessage(bytes: number): string {
124 return `Attachment is too large (${formatBytesAsMegabytes(bytes)}). The maximum supported size is ${formatBytesAsMegabytes(MAX_ATTACH_FILE_SIZE_BYTES)}.`;
125}
126
127function buildMissingFileError(resolvedPath: string, error: unknown): Error {
128 const message = getErrorMessage(error);

Callers 2

readRegularFileBytesFunction · 0.85
readAttachFileFromPathFunction · 0.85

Calls 1

formatBytesAsMegabytesFunction · 0.85

Tested by

no test coverage detected