Skip to content
New issue

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

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

Already on GitHub? # 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
Member

@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/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/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
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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants