Open-source document signature platform. Not affiliated with DocuSign.
TypeScript
Use one message for every stored file that is gone
Claude7aca8480304f
diff --git a/src/lib/downloads.ts b/src/lib/downloads.tsindex a94eab0..741a187 100644--- a/src/lib/downloads.ts+++ b/src/lib/downloads.ts@@ -536,8 +536,9 @@ async function buildSignedPdfDownload(} catch (error) {// The signed PDF is gone and so is the source it would be rebuilt from,// for example after the retention period removed both.+ // The same words as when any other stored file turns out to be gone.if (error instanceof StorageObjectNotFoundError) {- throw new DownloadAccessError("Signed PDF is unavailable.", 404);+ throw new DownloadAccessError("This file is no longer available.", 404);}throw error;