Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
1 line
943 B
Plaintext
1 line
943 B
Plaintext
{"version":3,"sources":["../../src/errors/FileRetrievalError.ts"],"sourcesContent":["import type { TFunction } from '@payloadcms/translations'\n\nimport { status as httpStatus } from 'http-status'\n\nimport { APIError } from './APIError.js'\n\nexport class FileRetrievalError extends APIError {\n constructor(t?: TFunction, message?: string) {\n let msg = t ? t('error:problemUploadingFile') : 'There was a problem while retrieving the file.'\n\n if (message) {\n msg += ` ${message}`\n }\n super(msg, httpStatus.INTERNAL_SERVER_ERROR)\n }\n}\n"],"names":["status","httpStatus","APIError","FileRetrievalError","t","message","msg","INTERNAL_SERVER_ERROR"],"mappings":"AAEA,SAASA,UAAUC,UAAU,QAAQ,cAAa;AAElD,SAASC,QAAQ,QAAQ,gBAAe;AAExC,OAAO,MAAMC,2BAA2BD;IACtC,YAAYE,CAAa,EAAEC,OAAgB,CAAE;QAC3C,IAAIC,MAAMF,IAAIA,EAAE,gCAAgC;QAEhD,IAAIC,SAAS;YACXC,OAAO,CAAC,CAAC,EAAED,SAAS;QACtB;QACA,KAAK,CAACC,KAAKL,WAAWM,qBAAqB;IAC7C;AACF"} |