fs - do not log an error when watching results in ENOENT

This commit is contained in:
Benjamin Pasero
2021-02-04 13:34:08 +01:00
parent 914cef30d5
commit 72e8e9f5be
@@ -74,7 +74,9 @@ export class FileWatcher extends Disposable {
}, error => this.onError(error)));
}
} catch (error) {
this.onError(error);
if (error.code !== 'ENOENT') {
this.onError(error);
}
}
}