Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

fs.watch error message includes filename #25542

Closed
wants to merge 3 commits into from
Closed

fs.watch error message includes filename #25542

wants to merge 3 commits into from

Conversation

charlierudolph
Copy link

If the file does not exist or if the file is not accessible (throws EACCES, what I actually ran into) the error thrown did not include the filename.

var fs = require('fs');

try {
fs.watch('non-existant-file')
Copy link

Choose a reason for hiding this comment

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

Missing a semicolon.

Copy link

Choose a reason for hiding this comment

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

I think existant should be existent

@cjihrig
Copy link

cjihrig commented Jun 26, 2015

Can you open this PR against io.js? Also, if you do that, the 20 line header in the test can be removed.

@jasnell
Copy link
Member

jasnell commented Aug 27, 2015

A new PR against nodejs/node master would be needed at this point. This isn't going to be able to land here.

@jasnell jasnell closed this Aug 27, 2015
cjihrig pushed a commit to nodejs/node that referenced this pull request Oct 2, 2015
This commit adds the relevant filename to fs.watch() errors.

Refs: nodejs/node-v0.x-archive#25542
PR-URL: #2748
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
jasnell pushed a commit to nodejs/node that referenced this pull request Oct 8, 2015
This commit adds the relevant filename to fs.watch() errors.

Refs: nodejs/node-v0.x-archive#25542
PR-URL: #2748
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants