Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: try to improve error handling logic in unixfs streams #1261

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

travis
Copy link
Contributor

@travis travis commented Jan 17, 2024

right now errors in the finalize methods can leave a writer unclosed forever - this should help improve the DX issues described in storacha-network/console#81 (comment) by at least printing an error to the console with information about the problem

right now errors in the `finalize` methods can leave a writer unclosed forever - this should help improve the DX issues described in storacha-network/console#81 (comment) by at least printing an error to the console with information about the problem
@travis travis requested review from alanshaw, Gozala, gobengo and olizilla and removed request for alanshaw January 17, 2024 00:41
packages/upload-client/src/unixfs.js Outdated Show resolved Hide resolved
travis and others added 2 commits January 18, 2024 16:24
confirmed this results in better behavior in the web console! was also able to test the error path here - I tried to create a `File` that represents a directory like in runtime error but could not reproduce - that seems to be a weird edge case that is hard to reproduce outside the browser context
@travis travis requested a review from alanshaw January 19, 2024 00:26
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.

None yet

3 participants