Skip to content

Commit 6c67205

Browse files
committed
fix error message
1 parent e0046d9 commit 6c67205

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rewatch/src/build/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ pub fn compile(
356356
.collect::<Vec<(&String, &Module)>>(),
357357
);
358358

359-
let guidance = "\nHow to fix:\n- Extract shared code into a new module both depend on.\n- If a namespace entry is part of the cycle, import submodules directly instead of the entry.\n";
359+
let guidance = "Possible solutions:\n- Extract shared code into a new module both depend on.\n";
360360
let message = format!(
361361
"\n{}\n{}\n{}",
362362
style("Can't continue... Found a circular dependency in your code:").red(),

rewatch/tests/snapshots/dependency-cycle.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ Dep01 (packages/dep01/src/Dep01.res)
1717
→ NS (packages/new-namespace/src/NS.res)
1818
→ NewNamespace.NS_alias (packages/new-namespace/src/NS_alias.res)
1919
→ Dep01 (packages/dep01/src/Dep01.res)
20-
21-
How to fix:
20+
Possible solutions:
2221
- Extract shared code into a new module both depend on.
23-
- If a namespace entry is part of the cycle, import submodules directly instead of the entry.
2422

2523
Incremental build failed. Error:  Failed to Compile. See Errors Above

0 commit comments

Comments
 (0)