MCPcopy Index your code
hub / github.com/Noumena-Network/code / getPdfPasswordProtectedErrorMessage

Function getPdfPasswordProtectedErrorMessage

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

Source from the content-addressed store, hash-verified

172 : `PDF too large (${limits}). Double press esc to go back and try again, or use pdftotext to convert to text first.`
173}
174export function getPdfPasswordProtectedErrorMessage(): string {
175 return getIsNonInteractiveSession()
176 ? 'PDF is password protected. Try using a CLI tool to extract or convert the PDF.'
177 : 'PDF is password protected. Please double press esc to edit your message and try again.'
178}
179export function getPdfInvalidErrorMessage(): string {
180 return getIsNonInteractiveSession()
181 ? '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