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 <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>
  • Loading branch information
trusktr authored and targos committed Apr 22, 2020
1 parent 11899f6 commit 385faf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/modules.md
Expand Up @@ -722,6 +722,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 385faf7

Please sign in to comment.