mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
put error message in the analytic event
This commit is contained in:
parent
f3ce6f4d4e
commit
dde9f16396
2 changed files with 3 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ export const contentFetchRequestHandler: RequestHandler = async (req, res) => {
|
|||
url,
|
||||
source,
|
||||
totalTime: logRecord.totalTime,
|
||||
errorMessage: logRecord.error,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -627,6 +627,8 @@ async function retrieveHtml(page: Page, logRecord: Record<string, any>) {
|
|||
logRecord.puppeteerSuccess = false
|
||||
logRecord.puppeteerError = e
|
||||
}
|
||||
|
||||
throw e
|
||||
}
|
||||
if (domContent === 'IS_BLOCKED') {
|
||||
return { isBlocked: true }
|
||||
|
|
|
|||
Loading…
Reference in a new issue