fs: include filename in watch errors
authorcharlierudolph <charles.rudolph@originate.com>
Wed, 30 Sep 2015 05:03:27 +0000 (22:03 -0700)
committerJames M Snell <jasnell@gmail.com>
Thu, 8 Oct 2015 03:39:15 +0000 (20:39 -0700)
commit4a35ba4966cbf7c807fa7fbbf3c420e97c5e2542
treeef8e8116ccf05d98b9144e46f0afc1beafdb78c8
parent7271cb047cbf2ad0f719142c1e00e4392cb44721
fs: include filename in watch errors

This commit adds the relevant filename to fs.watch() errors.

Refs: https://github.com/nodejs/node-v0.x-archive/pull/25542
PR-URL: https://github.com/nodejs/node/pull/2748
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
lib/fs.js
test/sequential/test-fs-watch.js