Make the import cycle look more like the compiler's message

This commit is contained in:
Jeroen Engels 2021-03-01 09:48:54 +01:00
parent 6bf6d41c55
commit ac68adc905

View File

@ -401,9 +401,9 @@ review rules project =
( [ Review.Error.ReviewError ( [ Review.Error.ReviewError
{ filePath = "GLOBAL ERROR" { filePath = "GLOBAL ERROR"
, ruleName = "Incorrect project" , ruleName = "Incorrect project"
, message = "Import cycle discovered" , message = "our module imports form a cycle:"
, details = , 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:<https://elm-lang.org/0.19.1/import-cycles>"
] ]
, range = { start = { row = 0, column = 0 }, end = { row = 0, column = 0 } } , range = { start = { row = 0, column = 0 }, end = { row = 0, column = 0 } }
, fixes = Nothing , fixes = Nothing