Skip to content

Commit 5c70db4

Browse files
juanarboltargos
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 b567a63 commit 5c70db4

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
@@ -3893,10 +3893,10 @@ to be notified of filesystem changes.
38933893
* On Aix systems, this feature depends on [`AHAFS`][], which must be enabled.
38943894

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

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

0 commit comments

Comments
 (0)