Skip to content

Commit 385faf7

Browse files
trusktrtargos
authored andcommitted
doc: include the error type in the request.resolve doc
PR-URL: #32152 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
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

Lines changed: 2 additions & 0 deletions
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)