Skip to content

Commit 385faf7

Browse files
trusktrtargos
authored andcommittedApr 22, 2020
doc: include the error type in the request.resolve doc
PR-URL: #32152 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 11899f6 commit 385faf7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎doc/api/modules.md

+2
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,8 @@ changes:
722722
Use the internal `require()` machinery to look up the location of a module,
723723
but rather than loading the module, just return the resolved filename.
724724

725+
If the module can not be found, a `MODULE_NOT_FOUND` error is thrown.
726+
725727
##### `require.resolve.paths(request)`
726728
<!-- YAML
727729
added: v8.9.0

0 commit comments

Comments
 (0)
Please sign in to comment.