MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isMediaSizeErrorMessage

Function isMediaSizeErrorMessage

src/services/api/errors.ts:147–153  ·  view source on GitHub ↗
(msg: AssistantMessage)

Source from the content-addressed store, hash-verified

145 * rather than content text, since media errors have per-variant content strings.
146 */
147export function isMediaSizeErrorMessage(msg: AssistantMessage): boolean {
148 return (
149 msg.isApiErrorMessage === true &&
150 msg.errorDetails !== undefined &&
151 isMediaSizeError(msg.errorDetails)
152 )
153}
154export const CREDIT_BALANCE_TOO_LOW_ERROR_MESSAGE = 'Credit balance is too low'
155export const INVALID_API_KEY_ERROR_MESSAGE = 'Not logged in · Please run /login'
156export const INVALID_API_KEY_ERROR_MESSAGE_EXTERNAL =

Callers

nothing calls this directly

Calls 1

isMediaSizeErrorFunction · 0.85

Tested by

no test coverage detected