From 385faf7721ed9d75b3a6157d7cceea4a48d84ce2 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Sun, 8 Mar 2020 12:13:25 -0700 Subject: [PATCH] doc: include the error type in the request.resolve doc PR-URL: https://github.com/nodejs/node/pull/32152 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- doc/api/modules.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/modules.md b/doc/api/modules.md index 10a532e335ccab..eda6855e3c2488 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -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)`