mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
module: fix incorrect formatting in require(esm) cycle error message
Fixes: https://github.com/nodejs/node/issues/57451 PR-URL: https://github.com/nodejs/node/pull/57453 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
d6b062cb92
commit
bc09144aa6
1 file changed
+2
-2
@@ -416,8 +416,8 @@ class ModuleLoader {
|
||||
if (parentFilename) {
|
||||
message += ` (from ${parentFilename})`;
|
||||
}
|
||||
message += 'A cycle involving require(esm) is disallowed to maintain ';
|
||||
message += 'invariants madated by the ECMAScript specification';
|
||||
message += ' A cycle involving require(esm) is not allowed to maintain ';
|
||||
message += 'invariants mandated by the ECMAScript specification. ';
|
||||
message += 'Try making at least part of the dependency in the graph lazily loaded.';
|
||||
throw new ERR_REQUIRE_CYCLE_MODULE(message);
|
||||
|
||||
|
||||
Reference in new issue
Block a user