mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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:
parent
9c567fc106
commit
4250c4030f
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue