mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
Merge pull request #9266 from overleaf/ae-pdf-preview-sentry
Use captureException for recording errors in pdf preview GitOrigin-RevId: ab3cf0a9d5579ea78c09ad10ec1b7e209d408519
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { captureMessage } from '../../../infrastructure/error-reporter'
|
||||
import { captureException } from '../../../infrastructure/error-reporter'
|
||||
import { generatePdfCachingTransportFactory } from './pdf-caching-transport'
|
||||
|
||||
const params = new URLSearchParams(window.location.search)
|
||||
@@ -117,7 +117,9 @@ export default class PDFJSWrapper {
|
||||
.catch(error => {
|
||||
if (this.loadDocumentTask) {
|
||||
if (!error || error.name !== 'MissingPDFException') {
|
||||
captureMessage(`pdf preview error ${error}`)
|
||||
captureException(error, {
|
||||
tags: { handler: 'pdf-preview' },
|
||||
})
|
||||
}
|
||||
|
||||
reject(error)
|
||||
|
||||
Reference in New Issue
Block a user