Skip to content

Commit

Permalink
fixup! esm: fix misleading error when import empty package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Sep 15, 2024
1 parent 1a50565 commit ac861d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3431,11 +3431,11 @@ void BindingData::LegacyMainResolve(const FunctionCallbackInfo<Value>& 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 {
Expand Down

0 comments on commit ac861d6

Please sign in to comment.