Nicer import cycle message

This commit is contained in:
Jeroen Engels 2021-03-06 18:37:50 +01:00
parent 472df5179a
commit 80ccf80f86

View File

@ -542,10 +542,10 @@ importCycleError moduleGraph edge =
|> List.reverse
in
[ globalError
{ message = "Your module imports form a cycle:"
{ message = "Your module imports form a cycle"
, details =
[ "Learn more about why this is disallowed and how to break cycles here:<https://elm-lang.org/0.19.1/import-cycles>"
, printCycle cycle
[ printCycle cycle
, "Learn more about why this is disallowed and how to break cycles here:<https://elm-lang.org/0.19.1/import-cycles>"
]
}
|> setRuleName "Incorrect project"