From ac861d6cb430b1cd0ecf1defa5084468e0e974f1 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Sat, 14 Sep 2024 19:23:54 -0700 Subject: [PATCH] fixup! esm: fix misleading error when import empty package.json --- src/node_file.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 18a86f25ad21fb..450d012776bc7b 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -3431,11 +3431,11 @@ void BindingData::LegacyMainResolve(const FunctionCallbackInfo& args) { return; } - THROW_ERR_MODULE_NOT_FOUND( - isolate, - "No package entry point defined for package %s imported from %s", - *utf8_package_json_url, - *module_base); + THROW_ERR_MODULE_NOT_FOUND(isolate, + "No package entry point defined for package" + " %s imported from %s", + *utf8_package_json_url, + *module_base); } void BindingData::MemoryInfo(MemoryTracker* tracker) const {