From 8a1223eeb6dfd68b9d9656043c0f8deba7c26f0a 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 --- doc/api/modules.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/modules.md b/doc/api/modules.md index 4c91c27f52bc33..9587e2ef0d38e5 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -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)`