Skip to content

Commit 49c1506

Browse files
juanarbolBethGriggs
authored andcommitted
doc: clarify docs fs.watch exception may be emitted
Fixes: #29894 PR-URL: #32513 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent f23b878 commit 49c1506

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/fs.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3884,10 +3884,10 @@ to be notified of filesystem changes.
38843884
* On Aix systems, this feature depends on [`AHAFS`][], which must be enabled.
38853885

38863886
If the underlying functionality is not available for some reason, then
3887-
`fs.watch` will not be able to function. For example, watching files or
3888-
directories can be unreliable, and in some cases impossible, on network file
3889-
systems (NFS, SMB, etc), or host file systems when using virtualization software
3890-
such as Vagrant, Docker, etc.
3887+
`fs.watch()` will not be able to function and may thrown an exception.
3888+
For example, watching files or directories can be unreliable, and in some
3889+
cases impossible, on network file systems (NFS, SMB, etc) or host file systems
3890+
when using virtualization software such as Vagrant or Docker.
38913891

38923892
It is still possible to use `fs.watchFile()`, which uses stat polling, but
38933893
this method is slower and less reliable.

0 commit comments

Comments
 (0)