Skip to content

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

Open
travis wants to merge 6 commits intomainfrom
fix/unixfs-stream-errors
Open

fix: try to improve error handling logic in unixfs streams#1261
travis wants to merge 6 commits intomainfrom
fix/unixfs-stream-errors

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 Gozala, alanshaw, 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
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