diff options
author | Guy Bedford <guybedford@gmail.com> | 2019-07-31 04:41:58 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-08-02 06:36:27 +0300 |
commit | 452b393c1fc993c50acd447eb84eeea529b89111 (patch) | |
tree | 8be7041710e9bd07c4f8622c6f2684515145e81f /src/module_wrap.cc | |
parent | ed138baff395ffc2ee8f41e99012866fdc27b4f4 (diff) |
module: exports error as MODULE_NOT_FOUND
PR-URL: https://github.com/nodejs/node/pull/28905
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 522e7c2a458..5b33ef261cf 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -859,7 +859,7 @@ Maybe<URL> PackageExportsResolve(Environment* env, std::string msg = "Package exports for '" + URL(".", pjson_url).ToFilePath() + "' do not define a '" + pkg_subpath + "' subpath, imported from " + base.ToFilePath(); - node::THROW_ERR_PATH_NOT_EXPORTED(env, msg.c_str()); + node::THROW_ERR_MODULE_NOT_FOUND(env, msg.c_str()); return Nothing<URL>(); } |