Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

better handle metadata extraction error #601

Merged
merged 2 commits into from
Jun 16, 2022

Conversation

abhinavkgrd
Copy link
Member

@abhinavkgrd abhinavkgrd commented Jun 16, 2022

Description

problem

files whose metadata extraction failed didn't get a map entry and caused a can't read property of undefined error when was they were accessed

solution

putting null values, for such cases to avoid the error

Test Plan

@cloudflare-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6386dc4
Status: ✅  Deploy successful!
Preview URL: https://0a81c21f.bada-frame.pages.dev
Branch Preview URL: https://handle-file-permission-denie.bada-frame.pages.dev

View logs

@abhinavkgrd abhinavkgrd requested a review from ua741 June 16, 2022 05:34
@ua741
Copy link
Member

ua741 commented Jun 16, 2022

Can you please test the change first before landing this?

@abhinavkgrd
Copy link
Member Author

tested by manually throwing an error during from metadata extraction function

@abhinavkgrd abhinavkgrd merged commit 98e3965 into master Jun 16, 2022
@abhinavkgrd abhinavkgrd deleted the handle-file-permission-denied branch June 16, 2022 12:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants