Skip to content

Conversation

@eduardoboucas
Copy link
Member

No description provided.

Copy link
Member

@serhalp serhalp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +163 to +164
const errorDetail = cacheResponse.headers.get(HEADERS.ErrorDetail) ?? ''
const errorMessage = ERROR_CODES[errorDetail as keyof typeof ERROR_CODES] || GENERIC_ERROR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
const errorDetail = cacheResponse.headers.get(HEADERS.ErrorDetail) ?? ''
const errorMessage = ERROR_CODES[errorDetail as keyof typeof ERROR_CODES] || GENERIC_ERROR
const errorDetail = cacheResponse.headers.get(HEADERS.ErrorDetail)
const errorMessage = ERROR_CODES[errorDetail as keyof typeof ERROR_CODES] ?? GENERIC_ERROR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll do as a follow-up just so I don't lose your ✅.

@eduardoboucas eduardoboucas merged commit b9f356a into main Mar 14, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants