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

Fixes #2. Convert exceptions to error events. #4

Merged
merged 1 commit into from
Mar 8, 2014
Merged

Fixes #2. Convert exceptions to error events. #4

merged 1 commit into from
Mar 8, 2014

Conversation

ericlathrop
Copy link
Contributor

I converted the createReadStream/createWriteStream exceptions into error events to match the original Node fs module. I converted the tests to check for this. I tried to make the code look like normal CoffeeScript, but I'm pretty new to it so I may have missed something. Let me know if there's any changes you want me to make.


size = @fstatSync(fd).size
try
if options.fd == null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops.. Now I see that custom options.fd is never used, but that was my mistake.. I should probably fix that after merge

@ericlathrop
Copy link
Contributor Author

I updated the spacing like you wanted. I also added a note to the readme.

@davidkudera
Copy link
Member

Thank you and now last thing. Is it possible to squash all these commits please?

@ericlathrop
Copy link
Contributor Author

Done.

@davidkudera
Copy link
Member

Great and thank you 👍

davidkudera pushed a commit that referenced this pull request Mar 8, 2014
Fixes #2. Convert exceptions to error events.
@davidkudera davidkudera merged commit 0c923a4 into Carrooi:develop Mar 8, 2014
@ericlathrop ericlathrop deleted the stream-error-event branch March 8, 2014 17:40
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