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

Reject with error message if stream is missing #57

Closed

Conversation

danielchiu
Copy link

As per #55, the stream from node-stream-zip can be undefined, and if so comes with an error.

This PR causes calls to node-stream-zip to rethrow that error. Read without whitespace for clarity.

Feel free to do whatever you wish with this!

@jansivans
Copy link
Member

Hi.
Thank you for PR!
All tests are passing, however, it would be great if you can add some example .xlsx file to /tests/assets and write a test for it.

@danielchiu
Copy link
Author

Hi, fair enough! Unfortunately I don’t have more bandwidth for this - so feel free to add, or to just close this PR.

The effect is to replace errors like “cannot read property ‘pipe’ of undefined” with errors from upstream. We never consistently reproduced the upstream errors with a file, but a test could be written by mocking the call.

@jansivans
Copy link
Member

Closing for now.
We will return to this PR if we face a similar issue and have a reproduction.
Thank you for your work.

@jansivans jansivans closed this Jul 14, 2023
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