We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 060e5f0 commit 53a95a5Copy full SHA for 53a95a5
lib/fs.js
@@ -1382,7 +1382,10 @@ function FSWatcher() {
1382
this._handle.onchange = function(status, event, filename) {
1383
if (status < 0) {
1384
self._handle.close();
1385
- const error = errnoException(status, `watch ${filename}`);
+ const error = !filename ?
1386
+ errnoException(status, 'Error watching file for changes:') :
1387
+ errnoException(status,
1388
+ `Error watching file ${filename} for changes:`);
1389
error.filename = filename;
1390
self.emit('error', error);
1391
} else {
0 commit comments