Skip to content

Commit 893e918

Browse files
trusktrMylesBorins
authored andcommitted
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 4c2e4d1 commit 893e918

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
@@ -736,6 +736,8 @@ changes:
736736
Use the internal `require()` machinery to look up the location of a module,
737737
but rather than loading the module, just return the resolved filename.
738738

739+
If the module can not be found, a `MODULE_NOT_FOUND` error is thrown.
740+
739741
##### `require.resolve.paths(request)`
740742
<!-- YAML
741743
added: v8.9.0

0 commit comments

Comments
 (0)