From ac68adc905b153c0df509969d0274b15d71bb26c Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Mon, 1 Mar 2021 09:48:54 +0100 Subject: [PATCH] Make the import cycle look more like the compiler's message --- src/Review/Rule.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Review/Rule.elm b/src/Review/Rule.elm index 97fecd0b..36c42b64 100644 --- a/src/Review/Rule.elm +++ b/src/Review/Rule.elm @@ -401,9 +401,9 @@ review rules project = ( [ Review.Error.ReviewError { filePath = "GLOBAL ERROR" , ruleName = "Incorrect project" - , message = "Import cycle discovered" + , message = "our module imports form a cycle:" , details = - [ "I detected an import cycle in your project. This prevents me from working correctly, and results in a error for the Elm compiler anyway. Please resolve it using the compiler's suggestions, then try running `elm-review` again." + [ "Learn more about why this is disallowed and how to break cycles here:" ] , range = { start = { row = 0, column = 0 }, end = { row = 0, column = 0 } } , fixes = Nothing