Skip to content

Commit badba50

Browse files
haykam821marco-ippolito
authored andcommitted
module: fix incorrect formatting in require(esm) cycle error message
Fixes: #57451 PR-URL: #57453 Backport-PR-URL: #59504 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Refs: #52697
1 parent 939ecf8 commit badba50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/internal/modules/esm/loader.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ class ModuleLoader{
366366
if(parentFilename){
367367
message+=` (from ${parentFilename})`;
368368
}
369-
message+='A cycle involving require(esm) is disallowed to maintain ';
370-
message+='invariants madated by the ECMAScript specification';
369+
message+='A cycle involving require(esm) is not allowed to maintain ';
370+
message+='invariants mandated by the ECMAScript specification. ';
371371
message+='Try making at least part of the dependency in the graph lazily loaded.';
372372
thrownewERR_REQUIRE_CYCLE_MODULE(message);
373373

0 commit comments

Comments
(0)