MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getPdfPasswordProtectedErrorMessage

Function getPdfPasswordProtectedErrorMessage

src/services/api/errors.ts:176–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174 : `PDF too large (${limits}). Double press esc to go back and try again, or use pdftotext to convert to text first.`
175}
176export function getPdfPasswordProtectedErrorMessage(): string {
177 return getIsNonInteractiveSession()
178 ? 'PDF is password protected. Try using a CLI tool to extract or convert the PDF.'
179 : 'PDF is password protected. Please double press esc to edit your message and try again.'
180}
181export function getPdfInvalidErrorMessage(): string {
182 return getIsNonInteractiveSession()
183 ? 'The PDF file was not valid. Try converting it to text first (e.g., pdftotext).'

Callers 2

normalizeMessagesForAPIFunction · 0.85

Calls 1

Tested by

no test coverage detected