Skip to content

fix: catch floating addFilesAsync rejections and bubble them up to main promise#455

Closed
pieh wants to merge 1 commit intoisaacs:mainfrom
pieh:fix/uncaught-rejection-on-files
Closed

fix: catch floating addFilesAsync rejections and bubble them up to main promise#455
pieh wants to merge 1 commit intoisaacs:mainfrom
pieh:fix/uncaught-rejection-on-files

Conversation

@pieh
Copy link
Copy Markdown
Contributor

@pieh pieh commented Mar 19, 2026

We've hit case where FS errors originating from addFilesAsync function calls were not catchable and were causing unhandled rejections crashes (ref: netlify/build#6990).

I prepared this optimistic fix together with test cases for them (that do fail without code change)

--edit:
I'll push just tests temporarily to show those fail without changes)
Well, I guess tests don't run my changes, so it just seems to test main 🤷

@isaacs isaacs force-pushed the fix/uncaught-rejection-on-files branch from 9883cfe to 01082a4 Compare March 20, 2026 01:15
@isaacs isaacs closed this in 01082a4 Mar 20, 2026
@isaacs
Copy link
Copy Markdown
Owner

isaacs commented Mar 20, 2026

Nice! This is obviously 100% correct. Published on 7.5.12

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.

2 participants