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 e07fde1 commit 59c6951Copy full SHA for 59c6951
1 file changed
DirectoryWatcher.js
@@ -543,7 +543,7 @@ class DirectoryWatcher extends EventEmitter {
543
process.nextTick(() => {
544
if (this.closed) return;
545
fs.readdir(this.path, (err, items) => {
546
- throw new Error(">>> 2" + this.path + err.code + this.closed);
+ throw new Error(">>> 2" + this.path + (err && err.code) + this.closed);
547
548
549
if (err) {
0 commit comments