Skip to content

Commit

Permalink
Log generating bulk document url errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLin0991 committed Aug 8, 2023
1 parent 050ffa0 commit 163863c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
federalAuthorityKeysForCHIP,
} from '../../../common-code/healthPlanFormDataType'
import { DocumentDateLookupTableType } from '../../../documentHelpers/makeDocumentDateLookupTable'
import { recordJSException } from '../../../otelHelpers'

export type ContractDetailsSummarySectionProps = {
submission: HealthPlanFormDataType
Expand Down Expand Up @@ -83,7 +84,9 @@ export const ContractDetailsSummarySection = ({
'HEALTH_PLAN_DOCS'
)
if (zippedURL instanceof Error) {
console.info('ERROR: TODO: DISPLAY AN ERROR MESSAGE')
const msg = `Error: getBulkDlURL errored when generating url for contract documents on submission ${submission.id}. Error: ${zippedURL}`
console.info(msg)
recordJSException(msg)
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ export const RateDetailsSummarySection = ({
'HEALTH_PLAN_DOCS'
)
if (zippedURL instanceof Error) {
console.info('ERROR: TODO: DISPLAY AN ERROR MESSAGE')
const msg = `Error: getBulkDlURL errored when generating url for rate documents on submission ${submission.id}. Error: ${zippedURL}`
console.info(msg)
recordJSException(msg)
return
}

Expand Down

0 comments on commit 163863c

Please sign in to comment.