Skip to content

Commit

Permalink
doc: include the error type in the request.resolve doc
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
trusktr authored and MylesBorins committed Mar 11, 2020
1 parent 4c2e4d1 commit 893e918
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,8 @@ changes:
Use the internal `require()` machinery to look up the location of a module,
but rather than loading the module, just return the resolved filename.

If the module can not be found, a `MODULE_NOT_FOUND` error is thrown.

##### `require.resolve.paths(request)`
<!-- YAML
added: v8.9.0
Expand Down

0 comments on commit 893e918

Please sign in to comment.