mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-25 02:34:36 +03:00
Nicer import cycle message
This commit is contained in:
parent
472df5179a
commit
80ccf80f86
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user