8000 forward writeStream errors to minifiedStream by chuckhendo · Pull Request #123 · ben-ng/minifyify · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

forward writeStream errors to minifiedStream #123

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chuckhendo
Copy link

In situations where the writeStream cannot write to the sourcemap file (such as when it doesn't have permissions), the entire process crashes. This will forward error events to the minifiedStream, so the user can handle them as needed.

I was going to write a test for this, but since git doesn't retain file permissions, I'm not sure of the best way to test this. @ben-ng if you have any feedback on how you think this could be tested, I'd be happy to write tests

@ben-ng
Copy link
Owner
ben-ng commented Jul 5, 2016

I think you can test this by changing the file permissions in the test with fs.chmod.

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
0